Click or drag to resize

PushButtonReaction Class

Base class for any reactions relating to PushButtons. Note that if this component or the GameObject it is on is disabled, the reaction will not fire. It is up to you to ensure that the enabled state of these are synchronised between different users.
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.Interaction.ReactionsReaction
              ImmerseSDK.Interaction.ReactionsPushButtonReaction
                More...

Namespace:  ImmerseSDK.Interaction.Reactions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public abstract class PushButtonReaction : Reaction

The PushButtonReaction type exposes the following members.

Constructors
  NameDescription
Protected methodPushButtonReaction
Initializes a new instance of the PushButtonReaction class
Top
Properties
  NameDescription
Protected propertyFireOnButtonRelease
Indicates if the reaction should be fired when the button is pressed or released
Public propertyUserThatInteractedWithButton
Identifies the last user that interacted with this button
Top
Methods
  NameDescription
Protected methodAwake
Unity component method
(Overrides ReactionAwake.)
Protected methodOnPress
Called when the button is pushed/released (depending on what you have specified in the _onButtonReleased field)
Top
Fields
  NameDescription
Private field_onButtonReleased
Indicates if the reaction should be fired when the button is pressed or released
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
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.Interaction.ReactionsReaction
              ImmerseSDK.Interaction.ReactionsPushButtonReaction
                ImmerseSDK.Audio.ReactionsOnPushButtonAudioTagReaction
                ImmerseSDK.Interaction.ReactionsOnPushButtonEnableInput
                ImmerseSDK.Interaction.ReactionsOnPushButtonEnableReaction
                ImmerseSDK.Interaction.ReactionsOnPushButtonEnableToggleReaction
                ImmerseSDK.Interaction.ReactionsOnPushButtonPlaySoundReaction
                ImmerseSDK.Interaction.ReactionsOnPushButtonSetAnimBoolReaction
                ImmerseSDK.Interaction.ReactionsOnPushButtonSetAnimTriggerReaction