Comment on page
WorldKeysare important in the GOAP system. They point to specific things or situations in the game. The
Planneruses these keys to decide what
Actionan agent should do next.
WorldKeyis connected to a
WorldSensor. This sensor checks and gives the current value for its
WorldKey. So, the
WorldKeytells us what to look for, and the
WorldSensortells us the current value of that thing in the game.
- 1.In the Unity editor, right-click on the folder you want.
- 2.Go to
Create > Goap > WorldKeyto make a new
You can also make a new
WorldKeyby writing a class that uses the
public class IsHungry : WorldKeyBase