Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

UI Raycast with modified Projection matrix

$
0
0
I am currently working on a 2D application for mobile devices. Certain UI elements are created as 3D objects, in order to create simple animations easily, and I use a sheared projection matrix to fake an orthographic projection.

But now I have the problem that mouseclucks on these sheared objects don't register where they appear on screen, but where they would appear without the shearing. Does anyone know of a way to make the graphic raycaster use the modified projection matrix?

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>