Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
jguinea's avatar
jguinea
Explorer
8 years ago

Gear VR Controller - OVRInput.RecenterController() doesn´t work

Hi!

I have this problem; I use Unity to develop and I need to be able to center the Gear VR Controller controller through code. I know that it is possible to center it by pressing the home button for a long time but I need to be able to do through code because in my project I dont want the users use that button. When I call this function, nothing happens. Does anyone the reason? or some other way to do it?

thanks!

3 Replies

Replies have been turned off for this discussion
  • PAalto's avatar
    PAalto
    Expert Protege
    I have not had any issues using code like this to recenter both the display and the controller:
    InputTracking.Recenter();
    OVRInput.RecenterController();
    You do have OVRManager somewhere in your scene, correct? I assume that is required for the recentering to work (along with various other things).