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

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


position Center of the handle in 3D space


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


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.