Is Raycast relatived to screen resolution?

hi, I use Physics.Raycast(overray, out overhit, 80f) to select a gameobject. It works fine when the screen resolution is 1366768, but when I change resolution to 1024768 or connected to the projector, it doesn’t work. Can anybody tell me why and how to solve this? Thanks!

Simple answer: Physics.Raycast() ITSELF is NOT related to the screen resolution.

Better answer: Your problem is probably related to your “overray” Ray object (eg. when you’re creating it via “Camera.ScreenPointToRay()”). Please provide the specific part of your code so we’re able figure out what the problem is.