Screen To World

Camera
Client Side
Both Mobile and PC

Convert screen coordinate to world coordinate

Declaration

func ScreenToWorldPoint(screenPosition Vector2, depth float, out var worldPosition Vector3)
go

Parameters

Input

Name Type Description
Screen Position Vector2 Screen coordinate
Depth Float Distance from screen

Out

Name Type Description
World Position Vector3 World Coordinate