Blabberbox » UnrealEngine VR Detection is DelayedShare on Twitter

UnrealEngine VR Detection is Delayed

June 2nd, 2018 | Posted by pftq in Blabberbox | #
Been stuck trying to figure out why #VR code in #UnrealEngine runs fine in the editor but not in a packaged build.  It turns out when packaged, the "Is Head Mounted Display Enabled?" function will not actually detect the headset until half a second or so after the game starts.  Janky way to fix this for now is to delay all VR code by a half second, but my worry is that this will vary depending on the computer we're running on.



Oh and for those who can't get even get the game to run in VR mode at all in the packaged game, you have to check "Start in VR" in the project settings.  This will still start in non-VR if no headset is connected, so it's annoying this isn't just a default option to begin with.
243 unique view(s)

Leave a Comment

Name: (Have an account? Login or Register)
Email: (Won't be published)
Website: (Optional)
Comment:
Enter the code from image: