Handles.PositionHandle Manual     Reference     Scripting  
Scripting > Editor Classes > Handles
Handles.PositionHandle

static function PositionHandle (position : Vector3, rotation : Quaternion) : Vector3

Parameters

NameDescription
position Center of the handle in 3D space

Returns

Vector3 - the new position. If the user has not performed any operation, it will return the same value as you passed it in postion.

Description

Make a 3D Scene view position handle.

This will behave like the built-in move tool in Unity. If you have assigned something to Undo.SetSnapshotInfo, it will work fully with Undo. If you have assigned a non-null value to ignoreRaycastObjects, the center handle will support full raycast placement. To control the orientation of the handle, set Handles.matrix prior to calling this function.