文档

Unity Engine

Unity Engine

WorldToScreenPoint(Camera, Vector3)

Transforms a position in world space into a screen space point.
阅读时间1 分钟最后更新于 2 天前

Definition

public static Vector2 WorldToScreenPoint(Camera cam, Vector3 worldPoint)

Parameters

The camera associated with the screen space position. (Optional)

worldPoint

Point in world space.

Returns

Type

Description

Vector2Returns the screen point.