I’m working on an asymmetric 2 player game that is played over LAN. One player controls a VR pawn using HTC Vive, the other plays on an Android device.
I have the networking setup and everything works fine until I reference SteamVR anywhere in any blueprint (spawning a MotionControllerPawn, casting to BP_MotionController, etc.). As soon as I do that the app on Android crashes with this error in the log:
- Missing Dependency, request for SteamVRChaperoneComponent but it hasn’t been created yet
and
- Error: Couldn’t find file for package /Script/SteamVR requested by async loading code. NameToLoad: /Script/SteamVR
I guess that SteamVR libraries are not being build for mobile devices which make sense but I can’t figure out how to make this work.
A bit more info:
The error is triggered by my GameMode where I spawn either a VR Pawn or a ThirdPersonCharacter after the OnPostLogin event.
What I’ve tried already:
- I tried to separate blueprints that reference VR stuff from those that should run on mobile but at some point I just had to reference VR in some shared blueprints.
- Eventually I tried to convert my Blueprint project to C++ so that I can force SteamVR to build for Android. I hoped that I’ll just add a line or two into the xxxxx.build.cs but I can see it’s not going to be that easy. So just out of desperation I tried to add android to the list of supported platforms in SteamVRPlugin.h. That surprisingly did not work
Any chance there is a way to fix this, any help would be greatly appreciated?