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 Exception when opening the UIBuilder

Discussion in 'UI Toolkit' started by StephanieRowlinson, Mar 31, 2022.

  1. StephanieRowlinson

    StephanieRowlinson

    Joined:
    Jul 23, 2014
    Posts:
    136
    I'm trying to build an LCARS themed bit of UI to get used to new UI Toolkit and UIBuilder. I managed to create a button earlier, but on returning to my project I keep on getting this error whenever I open the UIBuilder with my uxml. I have no idea what could be causing it or if I should just ignore it. Can anyone point me in the right direction for debugging this?

     
  2. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    515
    There is a fix for that in the queue, it should be available soon.

    It happens only when there is a single UI document using a panelSettings in the scene and that live reload is enabled. You can add another empty UIDocument with the same PanelSettings to the scene to get around the error for now.
     
  3. StephanieRowlinson

    StephanieRowlinson

    Joined:
    Jul 23, 2014
    Posts:
    136
    Thanks! I know what to do then.
     
  4. LMGod

    LMGod

    Joined:
    Apr 19, 2022
    Posts:
    1
    Thank you Stephanie for post, and thank you Simon for response. You both helped me to find the answer super quick.
    I am afraid of getting errors in Unity, because the console don't give you proper answers from what you can understand something clear (how C# scripting error console in Visual Studio do), so every error can take big amount of time to solve.