Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


WorldToGUIPoint(Vector3)

Converts a world space point to a 2D GUI position.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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.