その先にあるもの…

WorldToScreenPoint WorldToViewportPoint 본문

프로그래밍/Unity

WorldToScreenPoint WorldToViewportPoint

specialJ 2015. 3. 4. 19:47


Camera.WorldToScreenPoint


Transforms position from world space into screen space.

Screenspace is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (pixelWidth,pixelHeight). The z position is in world units from the camera.

http://docs.unity3d.com/ScriptReference/Camera.WorldToScreenPoint.html


Camera.WorldToViewportPoint

Transforms position from world space into viewport space.

Viewport space is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera.

http://docs.unity3d.com/ScriptReference/Camera.WorldToViewportPoint.html



Comments