class MAGES::SceneGraph::ActionReference¶
Overview¶
A serialized reference to an action in a scene graph, stored by ID. More…
class ActionReference
{
public:
// properties
string Id;
string CachedName;
bool IsSet;
};
Detailed Documentation¶
A serialized reference to an action in a scene graph, stored by ID.
Dumb data on purpose: it carries the ID and a human readable name for display, and knows nothing about how to look the action up. Consumers keep their own SceneGraphModule.FindActionById(string) call, so the reference stays usable from edit mode where no runtime graph exists.
Properties¶
string Id
Gets or sets the ID of the referenced action.
In a version 1 graph this is BaseActionData.ID; in a version 2 graph it is the node’s self reference, which is what BaseActionData.ID is stamped from when the graph is converted for the runtime.
string CachedName
Gets or sets the name the referenced action had when it was picked.
Display only. Lets the editor say which action went missing after it is deleted, and is never used to resolve the reference.
bool IsSet
Gets a value indicating whether an action has been picked.