I require a second PlayerController...
I realised you cannot do
How do you go about instantiating things?
I've tried this but it throws an error:
and this:
I realised you cannot do
Code:
APlayerController* controller = new APlayerController();
I've tried this but it throws an error:
Code:
NewObject<APlayerController>(APlayerController::StaticClass());
Code:
ConstructObject<APlayerController>(APlayerController::StaticClass());
Code:
Fatal error: [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.6\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 11] Cast of Class /Script/TemplatePlatformer.APlayerController to Level failed UE4Editor.exe has triggered a breakpoint. UE4Editor.exe has triggered a breakpoint.
Comment