Language
Edit

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.

public bool TryGetPressProgress(out float pokeAmount);
member this.TryGetPressProgress : single -> bool
Public Function TryGetPressProgress (ByRef pokeAmount As Single) As Boolean

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