I am attempting to create a hand of cards. The cards are all in a parent panel with a horizontal layout group. Each of the cards themselves has a vertical layout group containing the card name, card image, and card text. I want the cards to scale down when there are more than will fit in the layout group. However, I do not want them to grow and fill the entire layout group when there are not too many. I want them to be capped at 210 pixels wide. How would I go about doing this?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
185 People are following this question.
Dynamic UI image scale with Text length?
[Solved] Scroll not working when elements inside have click events
Calling coroutine in a method issue.
problem with unity UI .