Configure node components. More...
Public Member Functions | |
NodeComponent | CreateNodeComponent (string name, NodeComponentType nodeComponentType) |
Creates a node component (an animation player or a custom node component). More... | |
NodeComponent | CreateNodeComponent (NodeComponent sourceNodeComponent) |
Creates a node component by copying an existing node component. More... | |
Trigger | CreateTrigger (TriggerProperty triggerProperty) |
Creates a trigger. More... | |
MessageTrigger | CreateTrigger (MessageProperty messageProperty) |
Creates a message trigger. More... | |
Trigger | CreateTrigger (Trigger sourceTrigger) |
Creates a trigger by copying an existing trigger. More... | |
MessageTrigger | CreateTrigger (MessageTrigger sourceTrigger) |
Creates a message trigger by copying an existing message trigger. More... | |
bool | DeleteNodeComponent (NodeComponent nodeComponent) |
Deletes a node component. More... | |
bool | DeleteTrigger (Trigger trigger) |
Deletes a trigger. More... | |
Properties | |
IEnumerable< MessageTrigger > | MessageTriggers [get] |
Gets the message triggers in a NodeComponentHost. More... | |
IEnumerable< NodeComponent > | NodeComponents [get] |
Gets the node components in a NodeComponentHost. More... | |
IEnumerable< Trigger > | Triggers [get] |
Gets the triggers in a NodeComponentHost. More... | |
Configure node components.
This class represents a node component host which can have node components. You can attach node components to any node to add functionality to the node.
You can create these node components:
NodeComponent CreateNodeComponent | ( | string | name, |
NodeComponentType | nodeComponentType | ||
) |
Creates a node component (an animation player or a custom node component).
This function is the equivalent of calling Project.CreateNodeComponent.
You can find the available node component types in Project.NodeComponentTypeLibrary.
name | The name of the node component. |
nodeComponentType | The type of the node component. |
Examples
To create an Animation Player:
To create and configure a Property Target Interpolator:
NodeComponent CreateNodeComponent | ( | NodeComponent | sourceNodeComponent | ) |
Creates a node component by copying an existing node component.
sourceNodeComponent | The node component you want to copy to create a new node component. |
Examples
To create a node component from an existing node component:
Trigger CreateTrigger | ( | TriggerProperty | triggerProperty | ) |
Creates a trigger.
triggerProperty |
Examples
To create a trigger:
MessageTrigger CreateTrigger | ( | MessageProperty | messageProperty | ) |
Creates a message trigger.
messageProperty | Message property. |
Examples
To create a message trigger:
Creates a trigger by copying an existing trigger.
sourceTrigger | The trigger you want to copy to create a new trigger. |
Examples
To create a trigger from an existing trigger:
MessageTrigger CreateTrigger | ( | MessageTrigger | sourceTrigger | ) |
Creates a message trigger by copying an existing message trigger.
sourceTrigger | The trigger you want to copy to create a new trigger. |
Examples
To create a message trigger from an existing message trigger:
bool DeleteNodeComponent | ( | NodeComponent | nodeComponent | ) |
Deletes a node component.
This function is the equivalent of calling nodeComponent.Delete().
nodeComponent | The node component you want to delete. |
Examples
To delete the first node component of a node:
bool DeleteTrigger | ( | Trigger | trigger | ) |
Deletes a trigger.
trigger | The trigger you want to delete. |
Examples
To delete a trigger:
|
get |
Gets the message triggers in a NodeComponentHost.
Examples
To get all the message triggers in a node:
|
get |
Gets the node components in a NodeComponentHost.
Examples
To get all the node components in a node:
|
get |
Gets the triggers in a NodeComponentHost.
Examples
To get all the triggers in a node: