Editar

Compartir a través de


MixedRealityInspectorUtility.RotationHandle Method

Definition

Draw a rotation handle.

public static UnityEngine.Quaternion RotationHandle (UnityEngine.Object target, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, float handleSize = 0.2, bool autoSize = true, bool recordUndo = true);
static member RotationHandle : UnityEngine.Object * UnityEngine.Vector3 * UnityEngine.Quaternion * single * bool * bool -> UnityEngine.Quaternion
Public Function RotationHandle (target As Object, position As Vector3, rotation As Quaternion, Optional handleSize As Single = 0.2, Optional autoSize As Boolean = true, Optional recordUndo As Boolean = true) As Quaternion

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