![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The ISwitch graph node interface.
Graph::ISwitch nodes provide an easy and efficient way to select at most one child among a given number of children to be active and visible at the same time.
The currently active child can be either selected via the Graph::IIndexed base interface by specifying that child's index, or by calling SetSelectedChild() with a given child node ID. When doing so, any previously active other child gets deactivated.
Get the constant Graph::INode interface. This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
Murl.Graph.INode GetNodeInterface()
Set the currently active child node.
Boolean SetSelectedChild(String id)
id | The node ID of the child to activate. |
Get the currently active child node.
Murl.Graph.INode GetSelectedChild()
Check if a child with a given node ID is currently active.
Boolean IsChildSelected(String id)
id | The child node ID to check. |