mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 05:45:40 +00:00
Adds a onPostAdd callback to simObject so we can do handling AFTER the object and it's children have been added successfully.
This commit is contained in:
parent
bab55d46a9
commit
86dd8a8cf7
2 changed files with 8 additions and 0 deletions
|
|
@ -606,6 +606,10 @@ class SimObject: public ConsoleObject, public TamlCallbacks
|
|||
/// Called when the object's name is changed.
|
||||
virtual void onNameChange(const char *name);
|
||||
|
||||
/// Called when the adding of the object to the sim is complete, all sub-objects have been processed as well
|
||||
// This is a special-case function that only really gets used with Entities/BehaviorObjects.
|
||||
virtual void onPostAdd() {}
|
||||
|
||||
///
|
||||
/// Specifically, these are called by setDataField
|
||||
/// when a static or dynamic field is modified, see
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue