How to package a VR-Flat-Hybrid game for android?
I am trying to package my game for Android. What I mean with VR-Flat-Hybrid is, that the game can be played on a flat smartphone screen and with an HMD, like the HTC Vive. So I need to include things like SteamVRChaperone, which are not available for Android.
I had a different Error first. It was something along the lines of: "did not find SteamVRChaperoneComponent.generated.h".
I fixed that by adding "#if PLATFORM_WINDOWS" everywhere where I was using SteamVRChaperoneComponent or VRNotificationsComponent. But I want to support Playstation VR as well. Can I use "#if PLATFORM_WINDOWS || PLATFORM_PLAYSTATION" instead?
Now I get the Error below. I am guessing it occurs because I always add "SteamVR", "SteamVRController", "HeadMountedDisplay" to the PrivateDependencyModuleNames in MyProject.Build.cs. So how do I check if I am compiling for a SteamVR compatible system? Or at least where can I find information about the "UEBuildConfiguration"?
As I assumed, the problem was the configuration of the MyProject.Build.cs file. I was able to successfully package my project with the configuration below. I wish there was more documentation concerning the Build.cs file. I still don't really know what the different platform options are in "Target.Platform" and I don't know what is inside the UEBuildConfiguration.
PS: The other question is still unsolved though: Can I use something along the lines of:
PPS: I am now using
to exclude anything VR related. And I am using
to exclude everything related to SteamVR. (Valve, please add Linux support)
PPPS: I created a list of all the Target.Platform names I could find with a search in Visual Studio. so you can compare those names in your ProjectName.Build.cs file like this:
These are all the Names I could find.
Follow this question
Once you sign in you will be able to subscribe for any updates here