Class Node
A base class for behaviour nodes used in the Muse Behavior graph.
Inherited Members
Namespace: Unity.Muse.Behavior
Assembly: Unity.Muse.Behavior.dll
Syntax
[Serializable]
[JsonObject(IsReference = true)]
public abstract class Node
Properties
CurrentStatus
The current status of the graph node.
Declaration
public Node.Status CurrentStatus { get; }
Property Value
Type | Description |
---|---|
Node.Status |
GameObject
The game object associated with the behavior graph.
Declaration
protected GameObject GameObject { get; }
Property Value
Type | Description |
---|---|
GameObject |
Methods
AwakeNode(Node)
Declaration
protected void AwakeNode(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node |
AwakeParents()
AwakeParents is called after the running node has returned a status of Success or Fail.
Declaration
protected virtual void AwakeParents()
EndNode(Node)
Declaration
protected void EndNode(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node |
OnEnd()
OnEnd is called when the node has stopped running.
Declaration
protected virtual void OnEnd()
OnStart()
OnStart is called when the node starts running.
Declaration
protected virtual Node.Status OnStart()
Returns
Type | Description |
---|---|
Node.Status | The status of the node. |
OnUpdate()
OnUpdate is called each frame while the node is running.
Declaration
protected virtual Node.Status OnUpdate()
Returns
Type | Description |
---|---|
Node.Status | The status of the node. |
ResetStatus()
Resets the current status of the node.
Declaration
protected virtual void ResetStatus()
StartNode(Node)
Declaration
protected Node.Status StartNode(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node |
Returns
Type | Description |
---|---|
Node.Status |