Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Other How do I execute an action when I press the A button?

Discussion in 'VR' started by SuperBuilder133, Feb 5, 2021.

  1. SuperBuilder133


    Mar 19, 2019

    I am trying to reset the scene when I press the A button in a VR scene, however, I cannot find any tutorials on how to do so. I am very inexperienced with C#, which makes it hard to understand any documentations I find. All I really need is a simple script that detects when the A button on the Quest 2 controller is pressed, and then restarts the scene when said button is pressed. Any help with the scripting?