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
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.IndexingIndexedMonoBehaviour
              ImmerseSDK.InteractionEngageableObject
                ImmerseSDK.InteractionHingeEngageableObject
                  ImmerseSDK.InteractionDial

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.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 MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
Remarks
Watch our training videos covering Dial objects here
See Also