Creating buttons for user interface in virtual reality

I want to create a button In such way that when user gaze on it the next scene should be loaded. How can I do that please help. I am already see some demos of vr sample but dont understand how can I acheive same logic on button. I am new to all these things , please give me some ideas or specific links
Thanks

You can acheive same logic on a “button”.

The trick is to consider your button as a “Plane” and not as a “UI element”

  • MeshFilter : plane
  • MeshCollider on it
  • VRInteractiveItem on it
  • Then you attach your MonoBehaviour that knows the VRInteractiveItem and add the OnSmth methods to it

The demo of VR sample are really the best you can have. But it’s hard to deal with it at the begining.

It actually makes sens that the UI in VR is created with the 3D world, because you don’t have a HUD that follow the camera (or a very small one that doesn’t kill the experience)

Thanks for answar !
You maen that instead of creating button I have to create plane ?? And if I want to apply text on it than can I apply text on plane ??