Skip to content

format

typescript
Camera.WorldPointToScreen(point)

class: Camera

description

Converts world coordinates to screen coordinates of the current camera.

parameter

param_nametypedescription
pointVector3World coordinates.

reture

typedescription
Vector3The converted screen coordinates.

code example

typescript
let camera = this.gameObject.GetComponent<Camera>(Camera);
camera.WorldPointToScreen(new Vector3(1,1,1));