Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Into VR sample and <back> button on Gear VR

Discussion in 'AR/VR (XR) Discussion' started by motorsep, Dec 26, 2015.

  1. motorsep

    motorsep

    Joined:
    Dec 23, 2010
    Posts:
    25
    So I built and deployed Intro VR sample to my Gear VR. Worked right out of the box!

    Question - when I press Back button, screen fades to black. If I press it again, screen goes to pre-fading state and fades to black again. How do I make it fade once and do nothing else afterward ?

    Also, how to make app to go to Oculus Global menu when pressing Back button on Gear VR ?

    Thanks!
     
  2. motorsep

    motorsep

    Joined:
    Dec 23, 2010
    Posts:
    25
    Anybody ?
     
  3. ibps13

    ibps13

    Joined:
    Oct 6, 2012
    Posts:
    113
    I'm also interested to find a solution :)
     
  4. Justin-Wasilenko

    Justin-Wasilenko

    Joined:
    Mar 10, 2015
    Posts:
    103
    The VR Samples by Unity don't handle this, if you are looking into submitted an app to Oculus you need to download and check out the Oculus Utilities for Unity 5 SDK Examples and OVR Manager into your project.

    The Unity VR samples currently don't contain everything you need. The Fade to Black just reloads the main menu. For app submission you need to handle volume controls and long back button presses. The SDK Samples from Oculus will show you how to do that.
     
  5. ibps13

    ibps13

    Joined:
    Oct 6, 2012
    Posts:
    113
    Agree, just imported Oculus utilities and added to scene "OVRPlatform Menu" script to gameobject.
    Works fine !
     
  6. Pawuchock

    Pawuchock

    Joined:
    Nov 6, 2014
    Posts:
    17
    Unity 5.5.03f.Oculus utilities 1.10.0.
    whole new scene.added a OVRPlatform Menu script to gameobject.
    when i go to Global menu and then press back -> it takes me to Confirm Quit menu.but should go to my app
    does anybody knows how to fix it?