Karim Alaa
Karim Alaa

Reputation: 344

Auto resize panels when screen size changed in Unity

I'm a new in Unity, and I have an issue in resizing panels when screen size changed, I have 3 panels in big panel each panel has 1 active image and 2 hidden images and I want to not be intersected or have huge padding when screen size changed.

the following GIF shows my scenario.

enter image description here

So, how can I solve this?

Thanks in advance.

Upvotes: 0

Views: 799

Answers (1)

OnionFan
OnionFan

Reputation: 511

For this you can use https://docs.unity3d.com/ru/2019.4/Manual/script-VerticalLayoutGroup.html, this component allow you to change size and padding for group of objects.

Upvotes: 2

Related Questions