Click or drag to resize

PushButton Class

Enables this object to be used like a button
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.IndexingIndexedMonoBehaviour
              ImmerseSDK.Interaction.PointingNetworkedPointHandlingObject
                ImmerseSDK.InteractionInteractableObject
                  ImmerseSDK.InteractionPushButton

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.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 (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(User, Hands).)
Protected methodOnReceiveEvent
Called when the object is "clicked" (only on both local and remote users)
(Overrides NetworkedPointHandlingObjectOnReceiveEvent(Hands, User, Byte).)
Protected methodStart
Public methodTriggerScreenControlInteract (Overrides InteractableObjectTriggerScreenControlInteract.)
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 MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also