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

Method Initialize

Source/Engine/Level/Actor.cpp:1004–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002}
1003
1004void 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
1018void Actor::BeginPlay(SceneBeginData* data)
1019{

Callers 8

TestNetworking.cppFile · 0.45
InitializeHierarchyMethod · 0.45
OnInitializeMethod · 0.45
InitNewObjectsMethod · 0.45
CustomGenerateMipMapsFunction · 0.45
InitializeFunction · 0.45

Calls 1

GetSceneMethod · 0.80

Tested by

no test coverage detected