Files
sebastian lewicki 695acb1980 Upgrading the CQTest plugin to an Engine module
Introducing the CQTestEnhancedInput plugin as this requires use of the EnhancedInput Engine Plugin (Engine modules cannot make use of the Engine Plugin)
#jira UE-217806
#rb Devin.Doucette, Jerome.Delattre, rob.huyett, sean.sweeney

[CL 36039088 by sebastian lewicki in ue5-main branch]
2024-09-05 10:24:20 -04:00

24 lines
356 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Components/SpawnHelper.h"
FSpawnHelper::~FSpawnHelper()
{
if (GameWorld)
{
GameWorld->RemoveFromRoot();
GameWorld = nullptr;
}
}
UWorld& FSpawnHelper::GetWorld()
{
if (!GameWorld)
{
GameWorld = CreateWorld();
check(GameWorld);
GameWorld->AddToRoot();
}
return *GameWorld;
}