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

Method OnDisableInHierarchy

Source/Engine/Level/Actor.cpp:165–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void Actor::OnDisableInHierarchy()
166{
167 if (IsActiveInHierarchy() && GetScene() && _isEnabled)
168 {
169 ACTOR_LOOP_START_MODIFIED_HIERARCHY();
170 for (int32 i = 0; i < Children.Count(); i++)
171 {
172 Children.Get()[i]->OnDisableInHierarchy();
173 ACTOR_LOOP_CHECK_MODIFIED_HIERARCHY();
174 }
175
176 OnDisable();
177 }
178}
179
180bool Actor::IsSubClassOf(const Actor* object, const MClass* klass)
181{

Callers 1

DestroyChildrenMethod · 0.80

Calls 5

IsActiveInHierarchyFunction · 0.85
GetSceneFunction · 0.85
OnDisableFunction · 0.50
CountMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected