ドキュメント

Unity Engine

Unity Engine

WorldToScreenPoint(Camera, Vector3)

Transforms a position in world space into a screen space point.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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