01-15-2021 03:19 PM
public UnityEvent onUse;
void Update()
{
if (OVRInput.Get(Button.Start)) {
Debug.Log("System Gesture");
onUse.Invoke();
}
}
The
system gesture is a reserved gesture that allows users to transition to
the Oculus universal menu. This behavior occurs when users place their
dominant hand up with an open palm towards the headset and then pinch
with their index finger. When the users uses the non-dominant hand to
perform the gesture, it triggers the Button.Start
event. You can poll Button.Start
to integrate any action for the button press event in your app logic.
To detect the dominant hand, call the IsDominantHand
property from OVRHand.cs and to check whether the user is performing a system gesture, call the IsSystemGestureInProgress
property from OVRHand.cs. We recommend that if the IsSystemGestureInProgress
property returns true
,
the app should provide visual feedback to the user, such as rendering
the hand material with a different color or a highlight to indicate to
the user that a system gesture is in progress. The app should also
suspend any custom gesture processing when the user is in the process of
performing a system gesture. This allows apps to avoid triggering a
gesture-based event when the user is intending to transition to the
Oculus universal menu.
01-15-2021 03:22 PM
01-22-2022 09:57 AM
Did you solved?
If i use
void Update()
{
if (OVRInput.Get(Button.Start)) {
Debug.Log("System Gesture");
onUse.Invoke();
}
}
NOTHING appens... 😞