Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Convert Pointer coordinates to RectTransform coordinates

$
0
0
Hi,

Is there a simpler way of getting the position of a mouse/pointer click in RectTransform?

Use case is clicking on a map; I currently have a kludgy/brittle way of getting it done, but I feel there should be a more straightforward way of getting this done. Something similar to the Screen/View/World functions available in the Camera class?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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