Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

VR Recenter View & Unity5.4 B17

Discussion in '5.4 Beta' started by VirtualisDev, May 18, 2016.

  1. VirtualisDev

    VirtualisDev

    Joined:
    Jul 21, 2015
    Posts:
    30
    Hello guys,


    I've started to use the Unity 5.4 b17 but i have an issue with the recenter function.

    When i use UnityEngine.VR.InputTracking.Recenter(); with Unity 5.3, Unity 5.4 b12-16 i have no problems but since Unity 5.4 b16 and with the last 5.4 b17 i can't get it work.

    I'm using the 0.8 oculus runtime, the 1.3 can't be use for our needs.

    Here is my code :

    Code (CSharp):
    1. using UnityEngine;
    2. using UnityEngine.VR;
    3. using System.Collections;
    4.  
    5. public class ResetView : MonoBehaviour {
    6.  
    7.     // Use this for initialization
    8.     void Start () {
    9.      
    10.     }
    11.  
    12.     // Update is called once per frame
    13.     void Update () {
    14.  
    15.         if (Input.GetKeyDown(KeyCode.C))
    16.             UnityEngine.VR.InputTracking.Recenter();
    17.  
    18.         if (Input.GetKeyDown("joystick button 7"))
    19.             UnityEngine.VR.InputTracking.Recenter();
    20.  
    21.         if (Input.GetKeyDown ("joystick button 7"))
    22.             UnityEngine.VR.InputTracking.Recenter();
    23.  
    24.     }
    25. }
    26.  
     
    Last edited: May 18, 2016
  2. joshenes

    joshenes

    Joined:
    Apr 18, 2014
    Posts:
    48
    The native Oculus integration in b17 uses the 1.3 SDK plugin, whereas previous versions used 0.8. Replacing the plugins in the Unity\Editor\Data\VR install folder with the older 0.8 ones. might work. Before b17 we had to do this process to use the 1.3 SDK since Unity shipped with 0.8.
     
  3. VirtualisDev

    VirtualisDev

    Joined:
    Jul 21, 2015
    Posts:
    30
    Thanks Joshenes and sorry for the late reaply (i was gone to something else, now i'm back to this problem).

    Unfortunatly it doesn't works, tried to replace the VR folder with the one of previous version but it doesn't fix the recenter issue.

    Any idear ?
     
  4. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    I'm not aware of any issues with Recenter. I've asked QA to repro and send a bug.

    As of b16 there is no need to replace the oculus plugins, we include the new plugin by default.
     
  5. williamj

    williamj

    Unity Technologies

    Joined:
    May 26, 2015
    Posts:
    94
    The Recenter function works fine for Oculus CV1 using 5.4.0b19 on runtime 1.3 >. Can you provide some more details or perhaps a small repro project to help us investigate?

    Thanks!

    Will
    QA