MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnDisable

Method OnDisable

Source/Engine/Terrain/Terrain.cpp:882–899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880}
881
882void Terrain::OnDisable()
883{
884 GetScene()->Navigation.Actors.Remove(this);
885 GetSceneRendering()->RemoveActor(this, _sceneRenderingKey);
886#if TERRAIN_USE_PHYSICS_DEBUG
887 GetSceneRendering()->RemovePhysicsDebug(this);
888#endif
889 void* scene = GetPhysicsScene()->GetPhysicsScene();
890 for (int32 i = 0; i < _patches.Count(); i++)
891 {
892 auto patch = _patches[i];
893 if (patch->_physicsActor)
894 PhysicsBackend::RemoveSceneActor(scene, patch->_physicsActor);
895 }
896
897 // Base
898 Actor::OnDisable();
899}
900
901void Terrain::OnTransformChanged()
902{

Callers

nothing calls this directly

Calls 7

GetSceneFunction · 0.85
GetPhysicsSceneFunction · 0.85
GetPhysicsSceneMethod · 0.80
OnDisableFunction · 0.50
RemoveMethod · 0.45
RemoveActorMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected