기술 자료

Unity Engine

Unity Engine

GetHandleSize(Vector3)

Get world space size of a manipulator handle at given position.
읽는 시간 1분최근 업데이트: 한 달 전

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.