WorldToViewportPoint
Method
WorldToViewportPoint has 2 overloads.
WorldToViewportPoint(Vector3)
Transforms position from world space into viewport space. Unity docs
Parameters
Parameter | Description |
---|---|
Vector3 pos |
WorldToViewportPoint(Vector3, MonoOrStereoscopicEye)
Transforms position from world space into viewport space. Unity docs
Parameters
Parameter | Description |
---|---|
Vector3 pos | |
MonoOrStereoscopicEye eye |