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

Method OnEnable

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

Source from the content-addressed store, hash-verified

469}
470
471void Cloth::OnEnable()
472{
473 GetSceneRendering()->AddActor(this, _sceneRenderingKey);
474#if USE_EDITOR
475 GetSceneRendering()->AddPhysicsDebug(this);
476#endif
477#if WITH_CLOTH
478 if (_cloth)
479 PhysicsBackend::AddCloth(GetPhysicsScene()->GetPhysicsScene(), _cloth);
480#endif
481
482 Actor::OnEnable();
483}
484
485void Cloth::OnDisable()
486{

Callers

nothing calls this directly

Calls 4

GetPhysicsSceneFunction · 0.85
OnEnableFunction · 0.85
GetPhysicsSceneMethod · 0.80
AddActorMethod · 0.45

Tested by

no test coverage detected