Forum Discussion
Jezza3D
5 years agoHonored Guest
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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 2 years ago
- 9 months ago