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.

Bug UIBuilder : NotSupportedException: The `default` value is not supported for --builder-style property

Discussion in 'UI Toolkit' started by R4vakk, May 16, 2022.

  1. R4vakk

    R4vakk

    Joined:
    Oct 10, 2015
    Posts:
    17
    I'm getting this error when opening UIDocuments (even empty ones, and after restarting Unity) with the UIBuilder, which then becomes unresponsive. I'm using 2022.1.0f1.

    Is anyone else experiencing this?

     
  2. R4vakk

    R4vakk

    Joined:
    Oct 10, 2015
    Posts:
    17
    Can I get a dev's opinion on this? I literally cannot use the UIBuilder on 2022.1.0f1, and I can't isolate the source of the Exception.
     
  3. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    669
    Hello, we're not able to reproduce it here, can you report a bug through Unity (Help > Report a Bug) with your project included so we can reproduce the issue and fix it? Thanks in advance!
     
  4. R4vakk

    R4vakk

    Joined:
    Oct 10, 2015
    Posts:
    17
    Reimporting all assets and rebooting Unity seems to have fixed it. Something probably went wrong during the upgrade from b16.
     
    JuliaP_Unity likes this.
  5. alakoring

    alakoring

    Joined:
    Mar 11, 2018
    Posts:
    27
    Yes, I am getting it with 2022.3.1. (I’m updating to 2022.3.9 in the hope that it helps.) The first time, deleting .meta files seemed to do the trick. Now, it’s not.
     
  6. alakoring

    alakoring

    Joined:
    Mar 11, 2018
    Posts:
    27
    Sending in bug report for 2022.3.9.
     
  7. alakoring

    alakoring

    Joined:
    Mar 11, 2018
    Posts:
    27
    Not sure if it’s relevant, but
    There were some unmodified files which began
    <?xml version="1.0" encoding="utf-8"?>
    instead of
     <ui:UXML …
    I deleted them and it seemed to help. I think these were UIDocument assets I created but never edited.
     
  8. alakoring

    alakoring

    Joined:
    Mar 11, 2018
    Posts:
    27
    I’m still fighting this. Today’s solution appeared to be deleting the folders UIBuilder and UIElements from the Library folder.
     
  9. theashbot

    theashbot

    Joined:
    Apr 17, 2022
    Posts:
    23
    Were you able to find a solution?
     
  10. Jonathan_L

    Jonathan_L

    Joined:
    Jan 26, 2016
    Posts:
    43
    Try right-clicking UI Builder tab and selecting "Reset UI Builder Layout". I only tried this once, but the problem went away right after that. This happens to me every once in a while, so if I encounter the issue again, I'll confirm if this solution still works.

    upload_2023-10-3_20-7-34.png