Class CheckDistanceAction
Inheritance
CheckDistanceAction
Assembly: Unity.Muse.Behavior.dll
Syntax
[Serializable]
[NodeDescription("Check Distance", "Check if the distance between the Agent and the Target is below a specified Threshold.", "Is the distance between [Agent] and [Target] below [Threshold] ?", "", "Action/Conditional", "a7f68739e880f2880a0c8b3df7c50061", null, "C:\\temp\\com.unity.muse.behavior@0.9\\Packages\\com.unity.muse.behavior\\Runtime\\Execution\\Nodes\\Actions\\Conditional\\CheckDistanceAction.cs")]
public class CheckDistanceAction : Action
Fields
Agent
Declaration
public BlackboardVariable<GameObject> Agent
Field Value
StrictCheck
Declaration
public BlackboardVariable<bool> StrictCheck
Field Value
Target
Declaration
public BlackboardVariable<GameObject> Target
Field Value
Threshold
Declaration
public BlackboardVariable<float> Threshold
Field Value
Methods
OnStart()
OnStart is called when the node starts running.
Declaration
protected override Node.Status OnStart()
Returns
Type |
Description |
Node.Status |
The status of the node.
|
Overrides
OnUpdate()
OnUpdate is called each frame while the node is running.
Declaration
protected override Node.Status OnUpdate()
Returns
Type |
Description |
Node.Status |
The status of the node.
|
Overrides