Click or drag to resize

ToggleSwitch Class

A simple switch. Uses a HingeJoint to move
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.IndexingIndexedMonoBehaviour
              ImmerseSDK.Interaction.PointingNetworkedPointHandlingObject
                ImmerseSDK.InteractionInteractableObject
                  ImmerseSDK.InteractionToggleSwitch

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public class ToggleSwitch : InteractableObject

The ToggleSwitch type exposes the following members.

Constructors
  NameDescription
Public methodToggleSwitch
Initializes a new instance of the ToggleSwitch class
Top
Properties
  NameDescription
Public propertyIsOn
Indicates the current state of the switch
Top
Methods
Events
  NameDescription
Public eventOnSwitch
Fired when the switch is triggered
Top
Fields
  NameDescription
Private field_axis
Axis along which the switch moves
Private field_throw
Throw of the switch in degrees
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