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

WaterSpray Class

Extends MonoBehaviour

Methods

BeginUse ()
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.
Signature
void Oculus.Interaction.Demo.WaterSpray.BeginUse()
Returns
void
ComputeUseStrength ( strength )
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.
Signature
float Oculus.Interaction.Demo.WaterSpray.ComputeUseStrength(float strength)
Parameters
strength: float  A "raw strength" which the IHandGrabUseDelegate can use to inform its calculation of the true "strength"
Returns
float  The true "strength" of the secondary interactivity
EndUse ()
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.
Signature
void Oculus.Interaction.Demo.WaterSpray.EndUse()
Returns
void

Inner Enum

NozzleMode Enum

Enumeration Constants

Member
Spray
Stream