MixedRealityInspectorUtility.SquareMoveHandle Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Draw a square move handle.
public static UnityEngine.Vector3 SquareMoveHandle (UnityEngine.Object target, UnityEngine.Vector3 position, float xScale = 1, float yScale = 1, float zScale = 1, float handleSize = 0.2, bool autoSize = true, bool recordUndo = true);
static member SquareMoveHandle : UnityEngine.Object * UnityEngine.Vector3 * single * single * single * single * bool * bool -> UnityEngine.Vector3
Public Function SquareMoveHandle (target As Object, position As Vector3, Optional xScale As Single = 1, Optional yScale As Single = 1, Optional zScale As Single = 1, Optional handleSize As Single = 0.2, Optional autoSize As Boolean = true, Optional recordUndo As Boolean = true) As Vector3
Parameters
- target
- UnityEngine.Object
Object that is undergoing the transformation. Also used for recording undo.
- position
- UnityEngine.Vector3
The position to draw the handle.
- xScale
- Single
Scale the new value on the x axis by this amount.
- yScale
- Single
Scale the new value on the x axis by this amount.
- zScale
- Single
Scale the new value on the x axis by this amount.
- 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.Vector3
The new Vector3 value.