| 1002 | } |
| 1003 | |
| 1004 | void Actor::Initialize() |
| 1005 | { |
| 1006 | CHECK_DEBUG(!IsDuringPlay()); |
| 1007 | |
| 1008 | // Cache |
| 1009 | if (_parent) |
| 1010 | _scene = _parent->GetScene(); |
| 1011 | _isActiveInHierarchy = _isActive && (_parent == nullptr || _parent->IsActiveInHierarchy()); |
| 1012 | |
| 1013 | // Use lazy creation for the managed instance, just register the object |
| 1014 | if (!IsRegistered()) |
| 1015 | RegisterObject(); |
| 1016 | } |
| 1017 | |
| 1018 | void Actor::BeginPlay(SceneBeginData* data) |
| 1019 | { |
no test coverage detected