Click or drag to resize

ToggleSwitchReaction Class

Base class for any reactions relating to ToggleSwitches. 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.ReactionsToggleSwitchReaction
                ImmerseSDK.Interaction.ReactionsOnToggleSwitchEnableInput
                ImmerseSDK.Interaction.ReactionsOnToggleSwitchEnableReaction

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 ToggleSwitchReaction : Reaction

The ToggleSwitchReaction type exposes the following members.

Constructors
  NameDescription
Protected methodToggleSwitchReaction
Initializes a new instance of the ToggleSwitchReaction class
Top
Properties
  NameDescription
Public propertyInvertSwitchValue
If this is true, then we will invert the switch value before using it
Protected propertySwitch
The toggleSwitch that this reaction belongs to
Top
Methods
Fields
  NameDescription
Private field_invertSwitchValue
If this is true, then we will invert the switch value before using it
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