Search Unity

Accessing Cardboard back and configure buttons

Discussion in 'AR/VR (XR) Discussion' started by mattSydney, Mar 20, 2017.

  1. mattSydney

    mattSydney

    Joined:
    Nov 10, 2011
    Posts:
    171
    I am using Unity 5.6f1 and wonder how I can override the default behavior of the Cardboard back button and the configure button when I VR mode
     
  2. mira_leung

    mira_leung

    Official Google Employee

    Joined:
    May 17, 2016
    Posts:
    70
    You can customize the behaviour of the Cardboard back button by listening for Input.GetKeyDown(KeyCode.Escape)), but the Settings button is not override-able.
     
  3. mattSydney

    mattSydney

    Joined:
    Nov 10, 2011
    Posts:
    171
    Thanks for the information :)
     
  4. mattSydney

    mattSydney

    Joined:
    Nov 10, 2011
    Posts:
    171
    My Problem is the settings button prompts the user to install the Google Cardboard app and the client wants the settings button to open an option to scan QR code. They don't want the user to have to load another app.
     
  5. zleisure

    zleisure

    Joined:
    Oct 13, 2015
    Posts:
    4
    @mira_leung
    I made a test about "x"(back button),using by listening for Input.GetKeyDown(KeyCode.Escape)) in Update() of Unity.But no effect!Why?
    Unity5.6.0f3 + native Google Cardboard