It seems that the Ortho camera breaks the code and I did read on the forums about using screenToWorld function call with the nearClip as the cameraZ parameter as the source, but I can’t seem to get it working.
Could someone help out with this, how should I amend the ray code?
Hey,
For the perspective mode, the point and click script is taking camera Entity position as the origin point. So for the Orthographic mode, you just have to find its origin point through screenToWorld using nearClip and it should work fine.