Configure node components. More...
Public Member Functions | |
NodeComponent | CreateNodeComponent (NodeComponent sourceNodeComponent) |
Creates a node component by copying an existing node component. | |
NodeComponent | CreateNodeComponent (string name, NodeComponentType nodeComponentType) |
Creates a node component (Animation, Input Manipulator, or Custom node component). | |
TriggerNodeComponent | CreateTrigger (NodeComponentType triggerType) |
Creates a trigger. | |
TriggerNodeComponent | CreateTrigger (TriggerNodeComponent sourceTrigger) |
Creates a trigger by copying an existing trigger. | |
bool | DeleteNodeComponent (NodeComponent nodeComponent) |
Deletes a node component. | |
bool | DeleteTrigger (TriggerNodeComponent trigger) |
Deletes a trigger. | |
Properties | |
IEnumerable< NodeComponent > | NodeComponents [get] |
Gets the node components in a NodeComponentHost. | |
IEnumerable< TriggerNodeComponent > | Triggers [get] |
Gets the triggers in a NodeComponentHost. | |
Configure node components.
This interface represents a node component host that can have node components. To add functionality to a node, attach node components to that node.
You can create these node components:
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:
NodeComponent CreateNodeComponent | ( | string | name, |
NodeComponentType | nodeComponentType ) |
Creates a node component (Animation, Input Manipulator, or 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:
To create and configure a Multi-Click Manipulator:
TriggerNodeComponent CreateTrigger | ( | NodeComponentType | triggerType | ) |
Creates a trigger.
triggerType |
Examples
To create an On Property Change trigger:
To create a Button: Enter trigger:
To create a List Box: Item Selected trigger:
TriggerNodeComponent CreateTrigger | ( | TriggerNodeComponent | sourceTrigger | ) |
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:
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 | ( | TriggerNodeComponent | trigger | ) |
Deletes a trigger.
trigger | The trigger you want to delete. |
Examples
To delete a trigger:
|
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: