Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetHandleSize(Vector3)

Get world space size of a manipulator handle at given position.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static float GetHandleSize(Vector3 position)

Parameters

position

The position of the handle in 3d space.

Returns

Type

Description

floatA constant screen-size for the handle, based on the distance between from the supplied handle's position to the camera.

Remarks

Uses the current camera to calculate suitable size.