文档

Unity Engine

Unity Engine

WorldToScreenPoint(Vector3)

Transforms position from world space into screen space using the cached camera projection and viewport.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Parameters

worldPoint

A point in world space.

Returns

Type

Description

Vector2The converted point in screen space.