Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Jezza3D's avatar
Jezza3D
Honored Guest
5 years ago

This snippet of code is working in Unity but not as a build on the Quest, any ideas would be great

        //////////////////////////   Right Thumbstick  ////////////////////////////////
        Vector2 secondaryThumbstick2dvalue;
        InputFeatureUsage<Vector2> secondaryThumbstick2dVector = CommonUsages.primary2DAxis;
        if (rightController.TryGetFeatureValue(secondaryThumbstick2dVector, out secondaryThumbstick2dvalue))
        {
            if (secondaryThumbstick2dvalue != Vector2.zero)
            {
                rightThumbstickValues = secondaryThumbstick2dvalue;
                GameMgr.inst.SetSecondaryStickDirection(rightThumbstickValues);

                rightControllerAnimate.SetStickRotation(rightThumbstickValues);
            }
            else
            {
                GameMgr.inst.ResetTurnLock();   // Never getting called in a build, (In Unity This works....  hmmm...) 
            }
        } 
No RepliesBe the first to reply