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

How do you get an image to Preserve Aspect and Fit To Parent properly?

$
0
0
Maybe I have a fundamental misunderstanding of how to size an image (which I'm using as a menu panel) in a Canvas in Unity, but I can't find a solution to the issue of making such a panel always be as big as possible while maintaining the aspect ratio of the image.

With that in mind, there is one way I have of accomplishing this, but the method I use results in a panel that I can't seem to nest anything properly in. I feel like I'm doing something stupid or backwards, so if anyone...

How do you get an image to Preserve Aspect and Fit To Parent properly?

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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