Quantcast
Channel: Questions in topic: "camera ratio"
Viewing all articles
Browse latest Browse all 16

How to position and scale an element based on the aspect ratio?

$
0
0
I have UI elements positioned in the correct places on a 16:9 aspect ratio. I would like to make these elements automatically reposition and scale on start to match the aspect ratio, being that I will need them to work on multiple platforms. Edit: The elements are simply GameObjects. As far as anchor points, they do not touch the sides of the screen necessarily but I would like them anchored to one of the sides, depending on the placement of the element.

Viewing all articles
Browse latest Browse all 16

Trending Articles



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