Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug UI Builder: Buttons not working in horizontal flow

Discussion in 'UI Toolkit' started by Lance-Grooms, Jan 26, 2023.

  1. Lance-Grooms

    Lance-Grooms

    Joined:
    Mar 24, 2016
    Posts:
    26
    Picture show what the issue is. Trying to build a simple button bar. Other elements appear to work ok.
    upload_2023-1-26_11-38-48.png
     
  2. griendeau_unity

    griendeau_unity

    Unity Technologies

    Joined:
    Aug 25, 2020
    Posts:
    230
    Looks like the builder got in a really weird state. Can you report the issue with Help -> Report a Bug... by providing a test project and the steps to reproduce? Thanks!
     
  3. Lance-Grooms

    Lance-Grooms

    Joined:
    Mar 24, 2016
    Posts:
    26
    Will add a bug. But the repro steps were literally:
    1) Create A UIDocument.
    2) Add a Visual element. Change its height. Change flow to flow right.
    3) Add a button. 100% reproducible so far.


    <ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
    <ui:VisualElement name="VisualElement" style="flex-grow: 1; background-color: rgba(0, 0, 0, 0); height: 85px; flex-direction: column;">
    <ui:VisualElement name="AddButtonHere" style="flex-direction: row; height: 56px;" />
    </ui:VisualElement>
    </ui:UXML>