ue4plugins / LoadingScreen

A plugin for Unreal Engine 4 to expose simple controls for managing load screens.
MIT License
504 stars 163 forks source link

Cross-platform logic (VR, PC) #31

Closed AslanMussinov closed 6 years ago

AslanMussinov commented 6 years ago

Hello, the plugin is great, but I'd like to ask: is there any way to disable it for VR while keeping it enabled for PC? The game can be played both with or without HMD, and while playing in VR the image on the screen is distorted. I tried adding check here: ** void FLoadingScreenModule::StartupModule() { -> if (GEngine && GEngine->HMDDevice.IsValid() && GEngine->HMDDevice->IsHMDConnected()) if ( !IsRunningDedicatedServer() && FSlateApplication::IsInitialized() ) { ...

** but I got runtime error

AslanMussinov commented 6 years ago

Problem resolved For anyone interested: you have to add the check here: * void FLoadingScreenModule::HandlePrepareLoadingScreen() { -> if (GEngine && ... (also, for 4.18 version and higher you should use GEngine->XRSystem) const ULoadingScreenSettings Settings ... **