PressableButton.TryGetPressProgress(Single) Method

Definition

Retrieves the 0..1 amount that the button is currently directly compressed by a finger. Returns true if at least one finger is actively pressing the button; false otherwise.

C#
public bool TryGetPressProgress (out float pokeAmount);

Parameters

pokeAmount
Single

Returns

Remarks

Excludes any other input mode, such as gaze-pinch, click, or other interactor. Use GetSelectionProgress() to query the overall selectionProgress of this button.

Applies to

Proizvod Verzije
MRTK3 UX Core 3.0, 3.1, 3.2