Class BehaviorGraph
BehaviorGraph holds all of the runtime graph instances linked together into a complete behaviour defined within an BehaviorAuthoringGraph.
Implements
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Scene)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Muse.Behavior
Assembly: Unity.Muse.Behavior.dll
Syntax
[JsonObject(IsReference = true)]
public class BehaviorGraph : ScriptableObject, ISerializationCallbackReceiver
Properties
Blackboard
The blackboard containing variables used by the graph.
Declaration
public Blackboard Blackboard { get; }
Property Value
Type | Description |
---|---|
Blackboard |
IsRunning
True if the graph is running, false otherwise.
Declaration
public bool IsRunning { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
End()
Ends the execution of the behavior graph.
Declaration
public void End()
Restart()
Resets the execution state and restarts the graph.
Declaration
public void Restart()
Start()
Begins execution of the behavior graph.
Declaration
public void Start()
Tick()
Executes one step of the graph.
Declaration
public void Tick()