Search Unity

Bug Changing the styling in code breaks it in runtime

Discussion in 'UI Toolkit' started by StephanieRowlinson, Dec 2, 2019.

  1. StephanieRowlinson

    StephanieRowlinson

    Joined:
    Jul 23, 2014
    Posts:
    137
    I'm playing around with the runtime demo project and encountered a bug when I change the styling in code instead of the UIBuilder. When I do this the buttons in the UIBuilder change to green as they should, but then when I hit play the entire styling is broken. Reloading the project by restarting Unity fixes this and the in game GUI then displays properly. I've reported it as case 1202442, just posting here to make sure it reaches you. ;)

    upload_2019-12-2_11-54-45.png upload_2019-12-2_11-54-9.png
     
  2. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    Thanks for reporting it. We'll see if this bug is related to the Panel Renderer (runtime support). That said, just a note that bugs with the sample project itself will likely not be addressed as this is an unsupported example for evaluation.
     
  3. StephanieRowlinson

    StephanieRowlinson

    Joined:
    Jul 23, 2014
    Posts:
    137
    Don't worry, I'm not expecting bug fixes for the demo. Just figured you'd want to know about it. :)
     
    uDamian likes this.