ScriptReference/Camera.ScreenPointToRay #719
Replies: 1 comment
-
|
Note that the resolution it is based off changes if you have a render texture on your camera and if it's different then the output resolution the results become inaccurate to the camera. You can divide by how much the render textures resolution is to the output resolution, but this can have some issues and updating it isn't always the easiest. Another solution is to have a kinda ghost camera that does not render anything and acts purely as a camera to do this with. Both aren't great solutions but it's the best I got if anyone has anything better please update me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/Camera.ScreenPointToRay
https://docs.unity3d.com/ScriptReference/Camera.ScreenPointToRay.html
Beta Was this translation helpful? Give feedback.
All reactions