MixedRealityInspectorUtility.RotationHandle Method

Definition

Draw a rotation handle.

C#
public static UnityEngine.Quaternion RotationHandle (UnityEngine.Object target, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, float handleSize = 0.2, bool autoSize = true, bool recordUndo = true);

Parameters

target
UnityEngine.Object

Object that is undergoing the transformation. Also used for recording undo.

position
UnityEngine.Vector3

The position to draw the handle.

rotation
UnityEngine.Quaternion

The rotation to draw the handle.

handleSize
Single

Optional, handle size.

autoSize
Boolean

Optional, auto sizes the handles based on position and handle size.

recordUndo
Boolean

Optional, records undo state.

Returns

UnityEngine.Quaternion

The new Quaternion value.

Applies to

Produit Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0