Hello,
I’m starting at OCULUS_GO, and I need to call a scene with the control of a button in space, and, for the moment, it works with mouseOVER.
How can I convert this code to make it work by pointing to the oculus go control?
how should the script go
Thank you very much for any help.
public class button_call_scene : MonoBehaviour
{
public void OnMouseOver()
{
Application.LoadLevel("main_scene");
}
}
I recommend that for absolute basic stuff like this you check out Unity’s VR tutorials. They explain how you can do this (not only with a Controller, but also with gaze - simply looking at things), and also provide some nice scripts. I believe there are even some nice free Unity-provided Projects in the asset store.