You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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]
24 lines
356 B
C++
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;
|
|
} |