EasyDial Class |
Namespace: ImmerseSDK.Interaction
public class EasyDial : EngageableObject
The EasyDial type exposes the following members.
Name | Description | |
---|---|---|
CurrentAngle |
Amount of rotation relative to StartAngle defined in the inspector.
Only available to locally engaging users.
Can be greater than 360 and less than 0.
| |
MaxAngleDegrees |
Angle to stop rotation at
| |
MovementAxis |
The Axis that this dial will rotate around
| |
MovementType |
Type of movement for this dial. This is used to determine the angle of rotation as the user moves the controller.
| |
TransformAngle |
Current rotation of the dial's transform in the scene.
Available to both local and remote users.
Clamped between 0 and 360 degrees.
|
Name | Description | |
---|---|---|
Awake | (Overrides EngageableObjectAwake.) | |
GetPayload |
Gets the payload of the message
(Overrides EngageableObjectGetPayload(Boolean).) | |
IncrementAngle |
Set the current Angle of the dial. Range is [0, 360).
| |
OnDrawGizmos |
Unity component method
(Overrides EngageableObjectOnDrawGizmos.) | |
OnReceiveDisengage |
Called when an object engagement ends (when network message is received).
Note: All users (local and remote) will receive this.
(Overrides EngageableObjectOnReceiveDisengage(Avatar, Hands, UserID, Byte).) | |
OnReceiveEngage |
Called when an object engagement starts (when network message is received).
Note: All users (local and remote) will receive this.
(Overrides EngageableObjectOnReceiveEngage(Avatar, Hands, UserID, Byte).) | |
SetMaxAngle |
Change the maximum allowed Angle of the dial. Range is [0, 360).
| |
SetMovementAxis |
Change the movement axis of the dial
| |
SetNewAngle |
Set the current Angle of the dial. Range is [0, 360).
| |
ShouldAddDefaultThrowForce |
Returns true if the default throw force should be added (only valid for local disengagements that has authority)
(Overrides EngageableObjectShouldAddDefaultThrowForce.) | |
Start | ||
Update |
Unity Component Method
(Overrides EngageableObjectUpdate.) | |
UpdateRotationFromControllers |
Rotates the gameObject by an amount equal to how much the users hand has moved
|
Name | Description | |
---|---|---|
OnValueChanged |
Fired when this dial's value changes.
Please check the CurrentAngle or TransformAngle properties to get the current rotation angle.
|
Name | Description | |
---|---|---|
_deadZoneRadiusInMeters | ||
_handle | ||
_maxAngleDegrees |
The maximum Angle that the dial will allow movement to, dial can move between 0 and the max
| |
_maximumAngleSpeedPerSecond | ||
_movementAxis | ||
_movementType | ||
_useRotationLimits |
Used to set rotation limits between 0 and maxAngle
|
Name | Description | |
---|---|---|
GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) | |
WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |