Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (10 sloc) 380 Bytes

Camera

ScreenToHighPrecisionViewportPoint

Return a high precision viewport point. (0, 0) to (100, 100)

Debug.Log(mainCamera.ScreenToHighPrecisionViewportPoint(Input.mousePosition));

Return a custom high precision viewport point. (0, 0) to (n, n)

Debug.Log(mainCamera.ScreenToHighPrecisionViewportPoint(Input.mousePosition, 100));
You can’t perform that action at this time.