Click or drag to resize

PushButton Class

Enables this object to be used like a button
Inheritance Hierarchy

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax

The PushButton type exposes the following members.

Constructors
  NameDescription
Public methodPushButton
Initializes a new instance of the PushButton class
Top
Properties
  NameDescription
Public propertyIsPressed
Is this button currently pushed down?
Public propertyRigidbody
RigidBody associated with this button
Top
Methods
  NameDescription
Protected methodAwake
Unity component method
(Overrides InteractableObjectAwake.)
Protected methodFixedUpdate
Unity Component Method
(Overrides InteractableObjectFixedUpdate.)
Public methodGetPayload
Returns the payload (byte array). Can be empty array or null.
(Overrides NetworkedPointHandlingObjectGetPayload.)
Protected methodOnLocalEvent
Called when the object is "clicked" (only on local user)
(Overrides NetworkedPointHandlingObjectOnLocalEvent(Avatar, Hands).)
Protected methodOnReceiveEvent
Called when the object is "clicked" (only on both local and remote users)
(Overrides NetworkedPointHandlingObjectOnReceiveEvent(Avatar, Hands, UserID, Byte).)
Protected methodStart
Unity component method
(Overrides IndexedMonoBehaviourStart.)
Top
Events
  NameDescription
Public eventOnPressed
Button has been pressed
Public eventOnPressLocal
Button has been pressed (but only sent to the local listeners)
Public eventOnReleased
Button has been released
Public eventOnReleaseLocal
Button has been released (but only sent to the local listeners)
Top
Fields
  NameDescription
Private field_axis
The axis along which the button moves
Private field_sensitivity
Indicated the maximum movement allowed in the movement axis, in either positive or negative direction
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodGetObjectIndex
Gets the index from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetOwner
Gets the owner id from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetOwnerType
Gets the owner type from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetScene
Gets the scene id from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also