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

Method OnDisable

Source/Engine/Physics/Actors/Cloth.cpp:485–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485void Cloth::OnDisable()
486{
487 Actor::OnDisable();
488
489#if WITH_CLOTH
490 if (_cloth)
491 PhysicsBackend::RemoveCloth(GetPhysicsScene()->GetPhysicsScene(), _cloth);
492#endif
493#if USE_EDITOR
494 GetSceneRendering()->RemovePhysicsDebug(this);
495#endif
496 GetSceneRendering()->RemoveActor(this, _sceneRenderingKey);
497}
498
499void Cloth::OnDeleteObject()
500{

Callers

nothing calls this directly

Calls 4

GetPhysicsSceneFunction · 0.85
GetPhysicsSceneMethod · 0.80
OnDisableFunction · 0.50
RemoveActorMethod · 0.45

Tested by

no test coverage detected