I’m currently trying to get the world position of a raycast into the new UI (in World Space render mode) for a custom InputModule
of mine.
This works fairly well as long as the elements are flat, but as soon as they gain depth (e.g. by rotating them about X or Y), the results become inaccurate because the raycast reports the same distance for all points.
A workaround would be giving all elements a box collider and replacing the GraphicRaycaster
with a PhysicsRaycaster
, but then I could probably just as well use nGUI.
So, is there a way to get accurate collision data with the GraphicRaycaster
?