| 3 | #include "EditorScene.h" |
| 4 | |
| 5 | EditorScene::EditorScene(const SpawnParams& params) |
| 6 | : Scene(params) |
| 7 | { |
| 8 | // Mock editor preview scene to be in gameplay |
| 9 | InitializeHierarchy(); |
| 10 | SceneBeginData beginData; |
| 11 | EditorScene::BeginPlay(&beginData); |
| 12 | beginData.OnDone(); |
| 13 | |
| 14 | // Mark as internal to prevent collection in ManagedEditor::WipeOutLeftoverSceneObjects |
| 15 | Tags.Add(Tags::Get(TEXT("__EditorInternal"))); |
| 16 | } |
| 17 | |
| 18 | void EditorScene::Update() |
| 19 | { |