Click or drag to resize

Dial Class

Enables this object to be engaged with as a dial. Watch our training videos covering Dial objects here
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 Dial : HingeEngageableObject

The Dial type exposes the following members.

Constructors
  NameDescription
Public methodDial
Initializes a new instance of the Dial class
Top
Properties
  NameDescription
Public propertyAmountRotated
Amount of rotation in the range [0..1] Use Limits on the HingeJoint to limit movement if so required. This class will use those limits to calculate [0..1] range. If no limits, then it will use full rotation.
Top
Methods
Events
  NameDescription
Public eventOnValueChanged
Fired when this Dial's value changes. Value is (0..1)
Top
Fields
  NameDescription
Private field_invertValue
Invert the value (becomes 1- value)
Private field_isLargeDial
This affects how the dial is interacted with. Smaller dials use only wrist action, whereas larger dials uses "dragging" of the controller like a wheel
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
Remarks
Watch our training videos covering Dial objects here
See Also