Editar

Compartilhar via


MixedRealityInspectorUtility.AxisMoveHandle Method

Definition

Draw an axis move handle.

public static float AxisMoveHandle (UnityEngine.Object target, UnityEngine.Vector3 origin, UnityEngine.Vector3 direction, float distance, float handleSize = 0.2, bool autoSize = true, bool recordUndo = true);
static member AxisMoveHandle : UnityEngine.Object * UnityEngine.Vector3 * UnityEngine.Vector3 * single * single * bool * bool -> single
Public Function AxisMoveHandle (target As Object, origin As Vector3, direction As Vector3, distance As Single, Optional handleSize As Single = 0.2, Optional autoSize As Boolean = true, Optional recordUndo As Boolean = true) As Single

Parameters

target
UnityEngine.Object

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

origin
UnityEngine.Vector3

The initial position of the axis.

direction
UnityEngine.Vector3

The direction the axis is facing.

distance
Single

Distance from the axis.

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

The new Single value.

Applies to