How to automatically adjust the Padding of UI/Screengui whenever you hover your mouse


Hello guys, does anyone know how to do make automatically padding adjusting, i dont know what that feature mean, like in this video below:

i mean i dont know what that feature called*

All of the buttons are inside of a UI element with a UIListLayout.

A UIListLayout essentially organizes siblings that are UI elements into a line.

There is a cell padding property in a UIListLayout that constrains the distance between elements. This is likely the effect you are looking for.

One downside of using a UIListLayout is that the rotation of UI elements is locked to zero. You could counter this by adding a CanvasGroup or Frame within the buttons that contains all of the button’s children and rotate that instead.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.