Search Unity

Help with getting started with UI builder

Discussion in 'UI Toolkit' started by DevCase3DUnity, Nov 5, 2019.

  1. DevCase3DUnity

    DevCase3DUnity

    Joined:
    May 20, 2019
    Posts:
    10
    Hello, I cannot seem to find help with getting started with UIBuilder.
    I see that UI Builder Runtime package will be available with 2019.3. release, but does this mean it will be available with an official release?

    I have created new project in 2019.3.0a3 and I have imported UIBuilder package, but I see 2 errors:

    Library\PackageCache\com.unity.ui.builder@0.8.3-preview\Editor\Builder\BuilderSelection.cs(41,25): error CS0246: The type or namespace name 'StylePropertyReader' could not be found (are you missing a using directive or an assembly reference?)

    Library\PackageCache\com.unity.ui.builder@0.8.3-preview\Editor\Utilities\VisualTreeAssetExtensions\VisualTreeAssetLinkedCloneTree.cs(15,25): error CS0246: The type or namespace name 'StylePropertyReader' could not be found (are you missing a using directive or an assembly reference?)

    What am I missing?
    Also I cannot open UI Builder from Window > UI > UIBuilder, since I don't see that option.
     
  2. trojanfoe_

    trojanfoe_

    Joined:
    May 20, 2014
    Posts:
    53
    a3? It's up to b9 now. Try that.
     
  3. DevCase3DUnity

    DevCase3DUnity

    Joined:
    May 20, 2019
    Posts:
    10
    @trojanfoe123 thx mate! That solved the problem. I opened project in 2019.3.0b9
     
    uDamian and trojanfoe_ like this.
  4. DevCase3DUnity

    DevCase3DUnity

    Joined:
    May 20, 2019
    Posts:
    10
    Further questions:

    I have set up some buttons in UIBuilder, but I don't see them in Game/Play mode:
    upload_2019-11-6_13-43-44.png

    Further, in a Scene Hierarchy, on the Canvas game object, I don't have a Panel Renderer, nor can I add it as a component.
    upload_2019-11-6_13-48-4.png

    So my question here, is this the part that is coming with 2019.3. official release?

    Is there anyway to see the UI in the Game mode? If the answer is no, do we know the estimate when will 2019.3. release be? :D
     
  5. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    To clarify, the Runtime (Panel Renderer) component for UIElements is part of a package which is not yet public. The UI Builder is does not, itself, provide runtime support for UIElements.

    As for when UIElements will have full runtime support, we don't have an exact date yet.
     
    DevCase3DUnity likes this.
  6. DenisGLabrecque

    DenisGLabrecque

    Joined:
    Jul 29, 2017
    Posts:
    7
    @uDamian Any guess as to the date this enablement package will ship? I read somewhere mid-November? Does that mean it has been postponed but will be out soon?
     
  7. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    More info on this will be shared soon. I have no specifics to share at this time.
     
  8. TPockrandt

    TPockrandt

    Joined:
    Nov 25, 2019
    Posts:
    2
    Will there be an way to move Elements in the UI like in a Uinity UI Canvas?
    For example: I can just click the button and scale it as I wish?
     
  9. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    You can do this in the UI Builder when authoring the UI. You just need to set you element to absolute position. All this is shown in the Unite Copenhagen 2019 UI Builder demo talk:
     
    rita_unity16 likes this.
  10. Deiton2

    Deiton2

    Joined:
    May 8, 2019
    Posts:
    2
    Is it possible to install runtime by adding "com.unity.ui.runtime": "0.0.3-preview" to the manifest.json? Should it work correctly? I'm getting mixed results, because after doing so the UI shows up in the game preview, but it's not interactive.
     
  11. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    We released the _contents_ of that package as part of the Unite demo project because that package might not exist in the final form of our UIElements Runtime support implementation. See:
    https://forum.unity.com/threads/uielements-roadmap-update.784388

    So, we didn't advertise, nor do we support, direct use of that package. It's likely that Runtime support will just be part of the new UIElements package. Until then, please use the runtime implementation in the Unite demo repo (which you can of course copy and paste in your own project).
     
  12. TPockrandt

    TPockrandt

    Joined:
    Nov 25, 2019
    Posts:
    2
    I have to make a presentation about UIElements and UIBuilder is there a side, where I can find all "TODOs" for it?
     
  13. IkigaiMonkey

    IkigaiMonkey

    Joined:
    Sep 22, 2012
    Posts:
    18
    I'm fiddling with the example project from Unite, but can't find any Panel Renderer ("com.unity.ui.runtime": "0.0.3-preview" seems to be added), am I missing something?

    Besides that, is the package in a too early stage to start using it in new projects? I'm starting a new project that will likely last a few months and I'm keen to know if the support on the mid term will be there or it'll likely change a lot over time and using it right now it's totally discouraged (that'd be sad tho, using the old UI knowing this one will be there soon!)
     
  14. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    We don't have a public TODO list for the UI Builder. Since priorities can change, feature-to-feature, we don't want to commit to specific features. That said, high-level, here are some improvements we're working on short term:
    - Zoom/Pan in the Viewport
    - Units support for length styles (ie: "px", "%")
    - Keywords support (ie: "auto", "initial")
    - Multi-USS support so you can assign one or more existing USS files to your UXML
    - many fixes to UX, bugs, and stability/performance

    As for ETA for those features, I cannot say at this time. That said, we will be release those features as they are ready in frequent UI Builder package drops. We've already released a new version this week that improved StyleSheet and Selector management.
     
  15. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    Please read the README of the Unite Demo project repo:
    https://github.com/Unity-Technologies/UIElementsUniteCPH2019RuntimeDemo/blob/master/README.md

    Specifically, the Runtime section of the README states that Runtime support is not in the form of a package in this Demo project. Instead, it's bundled inside the Assets folder. So, you should really not have any mention of "com.unity.ui.runtime" in your manifest (having it there will actually break your project).

    After that, load the
    Assets/MainDemo.unity
    scene and make sure the GameObjects under the UI empty object have each a Panel Renderer component.

    The UIElements Runtime support implementation released as part of the Unite demo project is officially a preview and only meant for evaluation purposes. And while we are happy to get any feedback on the current implementation, we are not guaranteeing support for any issues you may have if you end up using it in production. As such, I would not recommend starting a project with this demo runtime bundle if it's time sensitive and has a low risk tolerance.

    But I also won't stop you. :) All I can say is that this big change is a transition, not a rewrite. We are actually trying hard to make the transition as smooth as possible.
     
  16. IkigaiMonkey

    IkigaiMonkey

    Joined:
    Sep 22, 2012
    Posts:
    18
    Awesome thanks for the answer, can't wait to have it there. I've been using it for editor tools and it feels just a perfect step forward.
     
  17. anmonta

    anmonta

    Joined:
    Mar 30, 2014
    Posts:
    1
    Not trying to be that guy... but its been more than 3 months since that demo. Truly would be great to see something that we could implement into project. @uDamian It was an awesome mind blowing demo for one of the most labor intensive ignored and underperforming parts of unity. I hope we can see some updates.
     
  18. GilliganGames

    GilliganGames

    Joined:
    Apr 9, 2019
    Posts:
    1
    Ya, I too have to ask, when will we be able to start implementing this @uDamian ? Any updates you can give? As far as I can tell it works as intended, or at least well enough to produce with... I know you guys have a tough job of slowly rolling out new updates as to not confuse anyone but as a Unity semi-novice who is very familiar with web development and loves CSS styling, I need this new UI feature asap, even as is.

    The main question I think everyone wants to know, is the runtime support implementation going to be available on the next update, soonish, or are you guys thinking further out? Is there any release date or time frame window you would be willing to throw out there? No one's going to put your feet to fire if you're off, but this is such a must-have and wanted feature, that I have to say is brilliantly put together, it's such a tease not to be publically supported for production use yet!!
    Keep up the great work!
     
  19. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    As mentioned in our roadmap update:
    https://forum.unity.com/threads/uielements-roadmap-update.784388
    we're moving UIElements to a package. This package will include the runtime support (runtime will not be a separate package). As we're also trying to make the transition for users as smooth as possible (ideally seemless), there is still some work ahead and so we cannot share exact release dates of this new UIElements package (and therefore Runtime support). That said, we are striving for to be done in time for the 2020.1 release.

    Also, just want to note that the UI Builder is a separate package, independent from the future UIElements package or the deprecated Runtime package. UI Builder will keep getting regular package updates prior (and after) the UIElements package release, and those updated version should continue to work with the Builder/Runtime demo project shared above.
     
    Matffin likes this.
  20. Benjamin_Lehmann

    Benjamin_Lehmann

    Joined:
    Nov 30, 2019
    Posts:
    8
    Just want to throw in my enthusiasm and eager anticipation for these packages being shipped. I loved your demo of this feature back at Unite 2019 and really hope that we'll be able to work with this workflow soon as part of standard development.

    @uDamian are you able to offer any further updates? Many thanks and keep up the great work!
     
    JuanuMusic likes this.
  21. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231