Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TransformHandle

Creates a transform handle.
Read time 3 minutesLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

TransformHandle(Vector3, Quaternion, Vector3)

Creates a transform handle.
public static void TransformHandle(ref Vector3 position, ref Quaternion rotation, ref Vector3 scale)

Parameters

position

Position of the handle.

rotation

The orientation of the handle in 3D space.

scale

Scale value to modify.

Remarks

This handle behaves like the built-in transform tool in Unity, with the option to display all scale handles, only the non-uniform scale handle, or no scale handles. Different signature variants will only display controls handles for arguments that have the ref modifier, allowing you to opt in to only those control handles you require.

TransformHandle(Vector3, Quaternion, Vector3)

Creates a transform handle.
public static void TransformHandle(ref Vector3 position, Quaternion rotation, ref Vector3 scale)

Parameters

position

Position of the handle.

rotation

The orientation of the handle in 3D space.

scale

Scale value to modify.

Remarks

This handle behaves like the built-in transform tool in Unity, with the option to display all scale handles, only the non-uniform scale handle, or no scale handles. Different signature variants will only display controls handles for arguments that have the ref modifier, allowing you to opt in to only those control handles you require.

TransformHandle(Vector3, Quaternion, Vector3)

Creates a transform handle.
public static void TransformHandle(Vector3 position, ref Quaternion rotation, ref Vector3 scale)

Parameters

position

Position of the handle.

rotation

The orientation of the handle in 3D space.

scale

Scale value to modify.

Remarks

This handle behaves like the built-in transform tool in Unity, with the option to display all scale handles, only the non-uniform scale handle, or no scale handles. Different signature variants will only display controls handles for arguments that have the ref modifier, allowing you to opt in to only those control handles you require.

TransformHandle(Vector3, Quaternion, float)

Creates a transform handle.
public static void TransformHandle(ref Vector3 position, ref Quaternion rotation, ref float uniformScale)

Parameters

position

Position of the handle.

rotation

The orientation of the handle in 3D space.

uniformScale

Uniform scale value to modify.

Remarks

This handle behaves like the built-in transform tool in Unity, with the option to display all scale handles, only the non-uniform scale handle, or no scale handles. Different signature variants will only display controls handles for arguments that have the ref modifier, allowing you to opt in to only those control handles you require.

TransformHandle(Vector3, Quaternion, float)

Creates a transform handle.
public static void TransformHandle(ref Vector3 position, Quaternion rotation, ref float uniformScale)

Parameters

position

Position of the handle.

rotation

The orientation of the handle in 3D space.

uniformScale

Uniform scale value to modify.

Remarks

This handle behaves like the built-in transform tool in Unity, with the option to display all scale handles, only the non-uniform scale handle, or no scale handles. Different signature variants will only display controls handles for arguments that have the ref modifier, allowing you to opt in to only those control handles you require.

TransformHandle(Vector3, Quaternion, float)

Creates a transform handle.
public static void TransformHandle(Vector3 position, ref Quaternion rotation, ref float uniformScale)

Parameters

position

Position of the handle.

rotation

The orientation of the handle in 3D space.

uniformScale

Uniform scale value to modify.

Remarks

This handle behaves like the built-in transform tool in Unity, with the option to display all scale handles, only the non-uniform scale handle, or no scale handles. Different signature variants will only display controls handles for arguments that have the ref modifier, allowing you to opt in to only those control handles you require.

TransformHandle(Vector3, Quaternion)

Creates a transform handle.
public static void TransformHandle(ref Vector3 position, ref Quaternion rotation)

Parameters

position

Position of the handle.

rotation

The orientation of the handle in 3D space.

Remarks

This handle behaves like the built-in transform tool in Unity, with the option to display all scale handles, only the non-uniform scale handle, or no scale handles. Different signature variants will only display controls handles for arguments that have the ref modifier, allowing you to opt in to only those control handles you require.