기술 자료

Unity Engine

Unity Engine

WorldToGUIPoint(Vector3)

Converts a world space point to a 2D GUI position.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public Vector2 WorldToGUIPoint(Vector3 worldPoint)

Parameters

worldPoint

A point in world space.

Returns

Type

Description

Vector2A point in GUI space.

Remarks

Uses the cached camera matrices and viewport to calculate the projection.