Search Unity

Question Left and right padding not working?

Discussion in 'UI Toolkit' started by Ariewe, Mar 15, 2023.

  1. Ariewe

    Ariewe

    Joined:
    Feb 11, 2019
    Posts:
    3
    I am trying out the new UI builder since it seemed to be a promising improvement over the old UI system.
    But I quickly stumbled across something that doesn't seem to work:

    Placing a button inside my UI, I would like to make the button use the left and right padding. I have set the width and height to "auto" and the min-width and min-height also to "auto". Left and right padding is set to 7px so the button should auto-resize to a size that consists of the left padding + text length + right padding. But instead, the button is always stretched across the whole screen width. However, the top and bottom padding seems to work fine. So why is the left and right padding not working as well? Am I missing something here?

    upload_2023-3-15_16-28-27.png