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

Can't figure out a very basic layout... (container scales to fit children, text pinned to top-left)

$
0
0
Hi,

I'm messing around and trying to pin some dynamically changing text to the top-left of the screen. I'd like to also include a background image behind the text that scales to fit.

Something like this....

View attachment 110427

I figure out how to make the text element stretch to fit its content with the Content Size Fitter (set to PreferredSize on both axes). Next I added an Image and made the Text a child of that. Finally I added a Content Size Fitter to the Image, thinking I was...

Can't figure out a very basic layout... (container scales to fit children, text pinned to top-left)

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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