MixedRealityInspectorUtility.VectorHandle 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 vector handle.
public static UnityEngine.Vector3 VectorHandle (UnityEngine.Object target, UnityEngine.Vector3 origin, UnityEngine.Vector3 vector, bool normalize = true, bool clamp = true, float handleLength = 1, float handleSize = 0.1, bool recordUndo = true, bool autoSize = true);
static member VectorHandle : UnityEngine.Object * UnityEngine.Vector3 * UnityEngine.Vector3 * bool * bool * single * single * bool * bool -> UnityEngine.Vector3
Public Function VectorHandle (target As Object, origin As Vector3, vector As Vector3, Optional normalize As Boolean = true, Optional clamp As Boolean = true, Optional handleLength As Single = 1, Optional handleSize As Single = 0.1, Optional recordUndo As Boolean = true, Optional autoSize As Boolean = true) As Vector3
Parameters
- target
- UnityEngine.Object
Object that is undergoing the transformation. Also used for recording undo.
- origin
- UnityEngine.Vector3
- vector
- UnityEngine.Vector3
- normalize
- Boolean
Optional, Normalize the new vector value.
- clamp
- Boolean
Optional, Clamp new vector's value based on the distance to the origin.
- handleLength
- Single
Optional, handle length.
- handleSize
- Single
Optional, handle size.
- recordUndo
- Boolean
Optional, records undo state.
- autoSize
- Boolean
Optional, auto sizes the handles based on position and handle size.
Returns
The new Vector3 value.