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

VRInputModule - Not working in 5.4

Discussion in '5.4 Beta' started by shawnblais, May 10, 2016.

  1. shawnblais

    shawnblais

    Joined:
    Oct 11, 2012
    Posts:
    324
    Hoping one of the Unity engineers, or a fellow Vive developer can help me out here.

    We're using this extension to allow interatction with UGUI:
    https://github.com/VREALITY/ViveUGUIModule

    Here's the input class itself:
    https://github.com/VREALITY/ViveUGUIModule/blob/master/Assets/ViveControllerInput.cs

    It works great in 5.3, but in 5.4 the ray-cast angle is all wrong (seems to shoot off from the trigger, and is aimed left)

    The module works by creating a camera at runtime, positioning it with the hand, and then using the mid-point of the camera as the raycast source.

    I can't think of any reason it would stop working in 5.4, I can't seem to figure it out a fix within the code, but it's pretty hard to understand how the heck this inputmodule works.

    Help!?
     
    Last edited: May 10, 2016
  2. leevermeulen

    leevermeulen

    Joined:
    Sep 17, 2014
    Posts:
    6
    Set the target eye on the controller to none:
    ControllerCamera.stereoTargetEye = StereoTargetEyeMask.None;
     
    DavidErosa likes this.
  3. shawnblais

    shawnblais

    Joined:
    Oct 11, 2012
    Posts:
    324
    Perfect, works great now. You're a lifesaver :)