MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / onRemove

Method onRemove

Engine/source/T3D/Scene.cpp:68–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void Scene::onRemove()
69{
70 Parent::onRemove();
71
72 smSceneList.remove(this);
73 mSceneId = -1;
74
75 /*if (smRootScene == this)
76 {
77 for (U32 i = 0; i < mSubScenes.size(); i++)
78 {
79 mSubScenes[i]->deleteObject();
80 }
81 }
82 else if (smRootScene != nullptr)
83 {
84 for (U32 i = 0; i < mSubScenes.size(); i++)
85 {
86 if(mSubScenes[i]->getId() == getId())
87 smRootScene->mSubScenes.erase(i);
88 }
89 }*/
90}
91
92void Scene::onPostAdd()
93{

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected