Class Condition
The base class for conditions used in Conditional and Abort nodes.
Inherited Members
Namespace: Unity.Behavior
Assembly: Unity.Behavior.dll
Syntax
[Serializable]
public abstract class Condition
Properties
GameObject
The game object associated with the behavior graph.
Declaration
public GameObject GameObject { get; }
Property Value
Type | Description |
---|---|
Game |
Methods
IsTrue()
IsTrue checks if the implemented condition is true.
Declaration
public abstract bool IsTrue()
Returns
Type | Description |
---|---|
bool | The result of the condition. |
OnEnd()
OnEnd is called as a cleanup method for the Condition after it completes its logic check.
Declaration
public virtual void OnEnd()
OnStart()
OnStart is called as a setup method for the Condition before it begins checking its logic.
Declaration
public virtual void OnStart()