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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Bug UIBuilder preview 16, Unity 2021.1.17f1 (macOS) - Different look in runtime and in builder

Discussion in 'UI Toolkit' started by SlowpokeFarm, Aug 19, 2021.

  1. SlowpokeFarm

    SlowpokeFarm

    Joined:
    May 6, 2018
    Posts:
    24
    After updating my project from latest 2020 LTS to 2021.1.17 I'm stuck with Builder now showing Visual Tree completely different from Runtime, as if some parts of theme were not applied, while the same theme is used.

    It's really difficult to build and debug styles with that issue. 2020.3.16f1 was unaffected by this, but it won't let me to rollback to LTS version.

    upload_2021-8-19_18-13-15.png upload_2021-8-19_18-13-24.png
     
  2. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    735
    Does playing with the Active Theme option (dropdown at the top right of the canvas) improve anything?
     
    Last edited: Aug 19, 2021
  3. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    735
  4. SlowpokeFarm

    SlowpokeFarm

    Joined:
    May 6, 2018
    Posts:
    24
    No, tried every theme listed there, didn't improve anything. In 2020 everything was consistent with runtime, but in 2021 it looks like some styles are just missing in Builder.
     
  5. SlowpokeFarm

    SlowpokeFarm

    Joined:
    May 6, 2018
    Posts:
    24
    I also get a lot of
    [Worker0] Assertion failed on expression: 'state.artifactID == result'
    stuff in console now, but as I have seen it's already a reported bug.
     
  6. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    735
    Would it be possible for you to share some .unitypackage with a basic UXML and your Theme file?
     
  7. SlowpokeFarm

    SlowpokeFarm

    Joined:
    May 6, 2018
    Posts:
    24
    Here
     

    Attached Files:

  8. SlowpokeFarm

    SlowpokeFarm

    Joined:
    May 6, 2018
    Posts:
    24
    Updated to Unity 2021.1.18f1, the same behavior persists
     
  9. cpalma-unity

    cpalma-unity

    Unity Technologies

    Joined:
    Nov 30, 2020
    Posts:
    90
  10. SlowpokeFarm

    SlowpokeFarm

    Joined:
    May 6, 2018
    Posts:
    24