[Solved] Nothing is rendered in-game (with panel renderer from cph2019 demo project)

What I did:

  1. Installed UIElements 0.10.0 via the package manager
  2. Copied the Assets/UIERuntime folder from this repo (GitHub - Unity-Technologies/UIElementsUniteCPH2019RuntimeDemo: This is the project used in the Unite Copenhagen 2019 presentation: Building UI for games with the new UI Builder)
  3. Opened the ui builder, added a new button and saved the ui
  4. Right-clicked in the scene hierarchy and added uielements → panel
  5. Set the “Uxml” and “Unity Style Sheet” to the ones I created earlier
  6. Pressed play

I would expect to see the button at this point, but nothing shows up and there are no error messages.

Am I missing a step?

I used Unity 2019.3.0f3. I also tried with version UIBuilder 0.9.0, but it made no difference.

Add “Default.uss” from the UIERuntime folder to the Unity Style Sheet field and not the one you created.

2 Likes

Ah, that did the trick :slight_smile: Thanks!