Search Unity

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

Discussion in 'UI Toolkit' started by bobbaluba, Dec 29, 2019.

  1. bobbaluba

    bobbaluba

    Joined:
    Feb 27, 2013
    Posts:
    81
    What I did:

    1. Installed UIElements 0.10.0 via the package manager
    2. Copied the Assets/UIERuntime folder from this repo (https://github.com/Unity-Technologies/UIElementsUniteCPH2019RuntimeDemo)
    2. Opened the ui builder, added a new button and saved the ui
    3. Right-clicked in the scene hierarchy and added uielements -> panel
    4. Set the "Uxml" and "Unity Style Sheet" to the ones I created earlier
    5. 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.
     
  2. GaryT_01000111

    GaryT_01000111

    Joined:
    Aug 4, 2017
    Posts:
    13
    Add "Default.uss" from the UIERuntime folder to the Unity Style Sheet field and not the one you created.
     
    mck94 and uDamian like this.
  3. bobbaluba

    bobbaluba

    Joined:
    Feb 27, 2013
    Posts:
    81
    Ah, that did the trick :) Thanks!