文档

Unity Engine

Unity Engine

GUIToScreenPoint(Vector2)

Converts a point from GUI position to screen space relative to the cached camera viewport.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public Vector2 GUIToScreenPoint(Vector2 guiPoint)

Parameters

guiPoint

A point in GUI space to convert to screen space.

Returns

Type

Description

Vector2
guiPoint
in screen space relative to the cached camera viewport.

Remarks