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

Method OnEnable

Source/Engine/Level/Actors/Light.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void Light::OnEnable()
25{
26 GetSceneRendering()->AddActor(this, _sceneRenderingKey);
27#if USE_EDITOR
28 GetSceneRendering()->AddViewportIcon(this);
29 GetSceneRendering()->AddLightsDebug<Light, &Light::DrawLightsDebug>(this);
30#endif
31
32 // Base
33 Actor::OnEnable();
34}
35
36void Light::OnDisable()
37{

Callers

nothing calls this directly

Calls 2

OnEnableFunction · 0.85
AddActorMethod · 0.45

Tested by

no test coverage detected