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

CanvasScaler current scale?

$
0
0
It seems like this would be obvious, but I can't seem to find out how to get this number.

For instance, if the reference resolution is 1920x1080, and the current resolution is 960x540, then the current scale of the UI would be 0.5. Is there any way to grab this number from the CanvasScaler component?

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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