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

Method OnEnable

Source/Engine/Particles/ParticleEffect.cpp:799–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797}
798
799void ParticleEffect::OnEnable()
800{
801 GetScene()->Ticking.Update.AddTick<ParticleEffect, &ParticleEffect::Update>(this);
802 GetSceneRendering()->AddActor(this, _sceneRenderingKey);
803#if USE_EDITOR
804 GetSceneRendering()->AddViewportIcon(this);
805 GetScene()->Ticking.Update.AddTickExecuteInEditor<ParticleEffect, &ParticleEffect::UpdateExecuteInEditor>(this);
806#endif
807
808 if (PlayOnStart)
809 Play();
810
811 // Base
812 Actor::OnEnable();
813}
814
815void ParticleEffect::OnDisable()
816{

Callers

nothing calls this directly

Calls 3

GetSceneFunction · 0.85
OnEnableFunction · 0.85
AddActorMethod · 0.45

Tested by

no test coverage detected