Click or drag to resize

ToggleSwitch Class

A simple switch. Uses a HingeJoint to move
Inheritance Hierarchy

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.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 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