PushButton Class |
Namespace: ImmerseSDK.Interaction
[UnityEngine.RequireComponent(typeof(UnityEngine.Rigidbody))] public class PushButton : InteractableObject
The PushButton type exposes the following members.
Name | Description | |
---|---|---|
PushButton | Initializes a new instance of the PushButton class |
Name | Description | |
---|---|---|
IsPressed |
Is this button currently pushed down?
| |
Rigidbody |
RigidBody associated with this button
|
Name | Description | |
---|---|---|
Awake | (Overrides InteractableObjectAwake.) | |
FixedUpdate |
Unity Component Method
(Overrides InteractableObjectFixedUpdate.) | |
GetPayload |
Returns the payload (byte array). Can be empty array or null.
(Overrides NetworkedPointHandlingObjectGetPayload.) | |
OnLocalEvent |
Called when the object is "clicked" (only on local user)
(Overrides NetworkedPointHandlingObjectOnLocalEvent(User, Hands).) | |
OnReceiveEvent |
Called when the object is "clicked" (only on both local and remote users)
(Overrides NetworkedPointHandlingObjectOnReceiveEvent(Hands, User, Byte).) | |
Start | ||
TriggerScreenControlInteract | (Overrides InteractableObjectTriggerScreenControlInteract.) |
Name | Description | |
---|---|---|
OnPressed |
Button has been pressed
| |
OnPressLocal |
Button has been pressed (but only sent to the local listeners)
| |
OnReleased |
Button has been released
| |
OnReleaseLocal |
Button has been released (but only sent to the local listeners)
|
Name | Description | |
---|---|---|
_axis |
The axis along which the button moves
| |
_sensitivity |
Indicated the maximum movement allowed in the movement axis, in either positive or negative direction
|
Name | Description | |
---|---|---|
GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) | |
WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |