Hey everyone,
I am currently trying to package a project containing the PicoXR plugin to Windows64. Building to Android already works. The project is blueprint only, I converted it to C++ to work on this error.
When building for Win64 I get this error:
D:/UnrealProjects/UMC_heart Final64/Plugins/PicoXR/Source/PicoXRDP/PicoXRDPHMD/Private/PXR_DPHMD.cpp(751): error C2027: use of undefined type 'ULevelEditorPlaySettings'
X:\VSoftware\Epic Games\UE_4.27\Engine\Source\Runtime\Engine\Classes\Engine/GameInstance.h(31): note: see declaration of 'ULevelEditorPlaySettings'
D:/UnrealProjects/UMC_heart Final64/Plugins/PicoXR/Source/PicoXRDP/PicoXRDPHMD/Private/PXR_DPHMD.cpp(752): error C2027: use of undefined type 'ULevelEditorPlaySettings'
X:\VSoftware\Epic Games\UE_4.27\Engine\Source\Runtime\Engine\Classes\Engine/GameInstance.h(31): note: see declaration of 'ULevelEditorPlaySettings'
The Error is about this part in the Plugin code
CreateSpectatorScreenController();
MyDp = MakeShareable(new DP());
ULevelEditorPlaySettings* PlaySettingsConfig = GetMutableDefault<ULevelEditorPlaySettings>();
PlaySettingsConfig->NewWindowHeight = 1920;
PlaySettingsConfig->NewWindowWidth = 1920;
PXR_LOGD(PxrUnreal,"PXR_DP start up finished!");
return true;
The output log referenced to this part of code at line 31 to tell me what to do. it seems to be the declaration in the header file.
struct FLatentActionManager;
class ULevelEditorPlaySettings;
class IAnalyticsProvider;
I’d like to know what I have to edit to the Plugin code to make it work again. I am not experienced in C++ at all but would very much like to make the Win64 build. Do I maybe have to declare this class in the plugin? I’d like to know.
Thanks for your time.