Entity Scene Actions and Condition Reference

Sample Actions and Condition

The Entities sample uses a Predator Nearby Condition to choose between wandering and fleeing. Wander defines a speed, sphere center, radius and arrival distance; Flee defines a flee speed and predator target. Keep these values on the sample Action or Condition that owns them.

Open the Entities scene from Sample Scenes, inspect the active state and its Action, then verify the predator condition before adapting the sample. See Entity Baking for the ECS setup.

Settings reference

Component or task Setting Default Description
Flee settings Flee Speed 10f The movement speed while fleeing.
Target Predator Default The shared variable containing the predator entity that should be fled from.
Predator Nearby settings Target Predator Default The shared variable that stores the closest predator within detection range.
Wander settings Speed 5f The movement speed.
Sphere Center Vector3.zero The wander sphere center.
Sphere Radius 50f The wander sphere radius.
Arrival Distance 0.5f The distance at which the agent is considered to have reached the target.