API reference
API reference
Select your platform
No SDKs available
No versions available

PressureSquishable Class

Extends MonoBehaviour, IHandGrabUseDelegate

Protected Fields

bool _started[Get]

Protected Functions

virtual void Start ( )

Member Functions

Invoked when a HandGrabUseInteractable's secondary interactivity becomes actionable (i.e., when the interactable is selected by a HandGrabUseInteractor).
This is an internally-invoked method and should not be called directly.
Invoked when a HandGrabUseInteractable's secondary interactivity ceases to be actionable (i.e., when the interactable is unselected).
This is an internally-invoked method and should not be called directly.
Computes the "strength" of the secondary interactivity, where "strength" is a 0-to-1 value indicating whether the secondary interactivity is being lightly used or fully used, respectively.
In the "spray bottle" example, a "strength" of 0 would indicate that the spray lever is not depressed at all, whereas a "strength" of 1 indicates full depression of the lever.
Parameters
strength
A "raw strength" which the IHandGrabUseDelegate can use to inform its calculation of the true "strength"
Returns
The true "strength" of the secondary interactivity
Did you find this page helpful?