Unity Screen / World Coordinates
Calculate ScreenToWorldPoint / WorldToScreenPoint conversion from camera parameters.
Camera Settings
Screen → World
ScreenToWorldPoint equivalent. screen.z is depth (distance from camera)
World: (0, 0, 0)
World → Screen
WorldToScreenPoint equivalent
Screen: (960, 540) / Depth: 10
Usage
Enter camera FOV, resolution, position, rotation. Input screen or world coordinates to convert. Simulates Unity's
Camera.ScreenToWorldPoint / WorldToScreenPoint in browser.When to use
Converting UI to world coordinates, calculating raycast from mouse, verifying coordinate conversion with camera settings.
Examples
Screen center
(960,540) to world, check where world (0,0,10) appears on screen.Tips
- Screen coords use bottom-left origin. Differs from UI RectTransform.
- Useful to verify world coords from RaycastHit.point back to screen.
- Camera near/far clip does not affect conversion result.