| 163 | } |
| 164 | |
| 165 | void 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 | |
| 180 | bool Actor::IsSubClassOf(const Actor* object, const MClass* klass) |
| 181 | { |
no test coverage detected