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]
20 lines
516 B
C++
20 lines
516 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "TestGameInstance.h"
|
|
#include "Engine/Engine.h"
|
|
|
|
UTestGameInstance::UTestGameInstance(const FObjectInitializer& InObjectInitializer)
|
|
: Super(InObjectInitializer)
|
|
{
|
|
}
|
|
|
|
void UTestGameInstance::InitializeForTest(UWorld& InWorld) {
|
|
FWorldContext* TestWorldContext = GEngine->GetWorldContextFromWorld(&InWorld);
|
|
check(TestWorldContext);
|
|
WorldContext = TestWorldContext;
|
|
|
|
WorldContext->OwningGameInstance = this;
|
|
InWorld.SetGameInstance(this);
|
|
|
|
Init();
|
|
} |