For the complete documentation index, see llms.txt. This page is also available as Markdown.

Getting Started

Tutorials

Installation

Add the package to your project using the package manager. Add the following URL to the package manager:

https://github.com/crashkonijn/GOAP.git?path=/Package#2.1.22

Alternatively install through OpenUPM or the Unity Asset Store.

Version This package was build using unity 2022.2, but also confirmed to be working with 2021.3.

Overview

Below is a quick overview of the different components of classes and how they are connected to an Action.

Class overview

Setup in Unity

  1. Create a class called WanderGoal that extends GoalBase.

  1. Create a class called WanderAction that extends ActionBase. The generic value of the class is the type of the data class used in this goal.

  1. Create a class called WanderTargetSensor that extends LocalTargetSensorBase. The generic value of the class is the type of the data class used in this goal.

  1. Create a class called AgentMoveBehaviour. This class will be called by the AgentBehaviour to move the agent to a target.

  1. Create a script called AgentBrain.

Choose your config style

Either continue the getting started by using Code or ScriptableObjects.

Last updated