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

Method OnDisable

Source/Engine/Level/Actor.cpp:1341–1352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1339}
1340
1341void Actor::OnDisable()
1342{
1343 CHECK_DEBUG(_isEnabled);
1344 _isEnabled = false;
1345
1346 for (int32 i = Scripts.Count() - 1; i >= 0; i--)
1347 {
1348 auto script = Scripts[i];
1349 if (script->GetEnabled() && script->_wasEnableCalled)
1350 script->Disable();
1351 }
1352}
1353
1354void Actor::OnParentChanged()
1355{

Callers

nothing calls this directly

Calls 3

GetEnabledMethod · 0.80
CountMethod · 0.45
DisableMethod · 0.45

Tested by

no test coverage detected