format
typescript
Camera.WorldPointToScreen(point)class: Camera
description
Converts world coordinates to screen coordinates of the current camera.
parameter
| param_name | type | description |
|---|---|---|
| point | Vector3 | World coordinates. |
reture
| type | description |
|---|---|
Vector3 | The converted screen coordinates. |
code example
typescript
let camera = this.gameObject.GetComponent<Camera>(Camera);
camera.WorldPointToScreen(new Vector3(1,1,1));