How to automatically move buttons to the left if one of them is disabled and how to rearrange them if the button is enabled again? I have tried to do this using colliders and rigidbodies with a script moving buttons in the update function but I suppose it’s a highly inefficient way.
Make all the Buttons a child of an GameObject Parent. Now add the component “Horizontal Layout Group” to the parent and play with the settings … Maybe unclick the “Control Child Size” setting. The padding is the spacing for example left and right. Spacing is the space between the childs and much more …
Greetings Toby