- Home /
Resize a panel in the editor without all its children being stretched?
I'm trying to build a prefabbed UI in the editor and it's pretty painful since every time I want to resize a panel, all its children get stretched out as the panel is resized. Is there some way to resize a panel while having all its children stay fixed without dragging all the children out of the panel, resizing it, then dragging them all back in?
Answer by JatsArts · Jun 11, 2016 at 07:11 PM
Select your panel press "T" on the keyboard then drag the size to what you want.
Or in the inspector, change the values for "Top" "Bottom" "Left" "Right"
Pressing T doesn't seem to do anything. Is there a way to do the T shortcut through a menu? Should I see some kind of visual change after pressing T?
When you select the panel pressing T will change the handle so that you can scale it.
All that does is allow you to scale the panel as I described in the original question. It still scales the panel's children.