class MAGES::SceneGraph::SceneGraphData¶
Overview¶
The scene graph data. More…
class SceneGraphData: public ScriptableObject { public: // classes class Group; // properties BaseActionData Root; List<Group> Groups; // methods void ForEach(Action<BaseActionData> action); void ForEach(BaseActionData start, Action<BaseActionData> action); BaseActionData Find(string id); SceneGraphData Clone(); };
Detailed Documentation¶
The scene graph data.
Properties¶
BaseActionData Root
Gets or sets the start action.
List<Group> Groups
Gets or sets the groups.
Methods¶
void ForEach(Action<BaseActionData> action)
Run action on each action in the graph.
Parameters:
action |
The action to run. |
void ForEach(BaseActionData start, Action<BaseActionData> action)
Run action on each action in the graph, starting from start.
Parameters:
start |
The starting node. Note that action will be invoked for this action as well. |
action |
The action to invoke. |
BaseActionData Find(string id)
Find an action by its ID.
Parameters:
id |
The id to search for. |
Returns:
The action with the corresponding id, null otherwise.
SceneGraphData Clone()
Clone the graph.
Returns:
The cloned graph.