Quantcast
Channel: Answers by "gfoot"
Viewing all articles
Browse latest Browse all 95

Answer by gfoot

$
0
0
Apply a Content Size Fitter and a Horizontal Layout Group to the parent panel, and set the Content Size Fitter component's settings both to "Preferred Size". This makes it resize (with optional padding) to fit the preferred size of whatever its contents are. You can use Layout Element nodes on the contents as well to influence that target size, but usually you don't want to.

Viewing all articles
Browse latest Browse all 95

Trending Articles



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