If a behavior uses state fields which already have keys defined in other behaviors in your project, you have two options:
You'll also need to check the box if your behavior uses a variable to
dynamically access state, e.g. state[field_name]
You can find a full list of the built-in fields here. You do not need to define these in your behavior keys.
Field Names at the top level of your keys cannot match built-in fields (e.g.
agent_id
, position
) and cannot start with double-underscore (e.g.
__age
), which are reserved for engine specific information. Fields below
the top level (i.e. as a child of a top-level field) may match those names.
Behavior keys will only sync their types across different behaviors. Changing the name of a behavior key for one behavior will not change it for others. You will need to update its name in every behavior which references that behavior key.
When you change the name, the type will automatically update for you.
Deleting a behavior key will only delete it from the current behavior. The same key on other behaviors will not be affected.
Previous
Next