playMaker

Author Topic: Check if HMD (VR Headset) is Active/Turned On?  (Read 447 times)

westingtyler

  • Full Member
  • ***
  • Posts: 221
    • View Profile
    • My Oculus Rift + Touch VR Game Using Playmaker
Check if HMD (VR Headset) is Active/Turned On?
« on: August 31, 2018, 03:55:21 AM »
If the player is wearing an HMD like Oculus Rift or Vive when they start the game, I want the game to check if that's the case and therefore enable the normal camera game object or the VR camera rig game object. I also what to be able to swap between these mid-game, if a player is playing in VR or not VR and wants to swap over. At that point the controls will be swapped, too, between keyboard, xpad, or vr hand controllers. Can this be done with an action?

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 693
    • View Profile
Re: Check if HMD (VR Headset) is Active/Turned On?
« Reply #1 on: August 31, 2018, 05:46:26 AM »
Hi, different VR devices use different API. Therefore there is not one universal platform for it all. Are you using steam VR in your project? Where are you getting your current VR actions from?

westingtyler

  • Full Member
  • ***
  • Posts: 221
    • View Profile
    • My Oculus Rift + Touch VR Game Using Playmaker
Re: Check if HMD (VR Headset) is Active/Turned On?
« Reply #2 on: September 10, 2018, 03:30:39 PM »
I am using the Oculus Rift, and as far as I know my only VR actions are the Touch Controls actions in this package, which is a great package.

https://assetstore.unity.com/packages/templates/systems/oculus-touch-playmaker-toolkit-90963

If you are implying there are "VR actions" somewhere online, that'd be really cool to see!


tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 693
    • View Profile
Re: Check if HMD (VR Headset) is Active/Turned On?
« Reply #3 on: September 10, 2018, 08:37:58 PM »
Not sure if you are familiar with VRTK? If not, it has lots of the functions that you may be looking for. Grab, throw, teleport, etc. I wrote around a 100+ playmaker actions for it, as well as have videos.

https://www.youtube.com/channel/UCyRBYRGl9v_byeKxT4GLG_A