Search Unity

UI Toolkit not in package manger?

Discussion in 'UI Toolkit' started by Flow-Fire-Games, Jun 20, 2020.

  1. Flow-Fire-Games

    Flow-Fire-Games

    Joined:
    Jun 11, 2015
    Posts:
    305
    What am I missing? Using latest 2020.1.0b
    My filters are correct

    Edit2: found it after 1 hour of confusion...

    Edit1:
    Removed rant about the typical unity user experience after one hour of trying to get a package to work and the smart decision to hide the preview package setting in a totally empty page in the project settings

    But I found my "UI Builder" now and I have "UI Elements" Samples, still no UI Toolkit /s
     
    Last edited: Jun 20, 2020
  2. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    We'll have an update on the UI Toolkit package soon.

    Worth re-iterating though that UI Toolkit is a rebrand of UIElements, and most of UIElements is in the core Unity product. You don't need any packages to use it (that's where the UIElements Samples comes from too). The UI Toolkit package will just add runtime support on top of existing APIs. So you can still get started with UI Toolkit with no packages installed (or, if you prefer, the UI Builder package which for creating UXML/USS assets more easily).
     
    Tanner555 likes this.
  3. dannyalgorithmic

    dannyalgorithmic

    Joined:
    Jul 22, 2018
    Posts:
    100
    Is it currently advisable that we make runtime UI with this system for full products rather than prototypes?
     
  4. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    I would wait for the official announcement of the package but if you already found it (and it doesn't have the words "runtime" or "builder" in the package name), then it will be fairly safe to start building with it. Again, details will come...soon.
     
    WAYNGames likes this.
  5. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    377
    The UI Toolkit package will first release in "preview". Let me quote this from the 2020.1 documentation:

    Preview packages are packages that are not production-ready and you should only use them for testing and to provide feedback.

    https://docs.unity3d.com/2020.1/Documentation/Manual/pack-preview.html

    So it is advised that you wait later in the release process before using it in production.
     
    Last edited: Jul 7, 2020
  6. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
    Wait... we can find the new unrealeased/unannonced runtime package for UI Toolkit ?? *start editing "package.json" frenetically* :p

    EDIT : Found it ! Mouhahahahaha :D:D:D
     
    Last edited: Jul 7, 2020
    NotaNaN likes this.
  7. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
    Scaling in "in game" view seem to be bugued. it take the entire screen whatever the setting/style I use (did not happen with the previous unreleased package version).
    Guess there is still work to do.
    Keep up the good work Unity, can't wait to have the official runtime version ;)
     
  8. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    377
    @WAYN_Group Please submit a repro through the bug reporter and we'll look into it.
     
  9. dorianvasile

    dorianvasile

    Joined:
    Jul 1, 2020
    Posts:
    7
    If you're looking to try out the new package, add
    "com.unity.ui": "1.0.0-preview.3"
    to Packages/manifest.json.

    Remember to update your old PanelRenderers to UIDocuments and create Panel Settings to add to the new UIDocuments components.

    P.S. This package breaks the current Device Simulator package. You can use this package and update the Device Sim package code yourself for now, but that's another can of worms.
     
  10. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
    AlexandreT-unity likes this.
  11. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
    Yes that's what I'm using, in Unity 2020.1.0b12.3931.
    I'll try to update to 2020.1.0b14 without much hope.
     
  12. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
    2020.1.0b14 did not change the behavior :(
     
  13. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    377
    Thanks we were able to repro the issue, we'll have someone dig deeper into it.
     
  14. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
    great !
     
  15. benoitd_unity

    benoitd_unity

    Unity Technologies

    Joined:
    Jan 2, 2018
    Posts:
    331
    Hi everyone,

    You can head over to the official UI Toolkit preview package announcement post if you want more information on getting started.

    Cheers,
     
    Last edited: Jul 8, 2020
  16. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
  17. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
     
  18. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    698
    Hey @WAYN_Group, I just noticed that by adding a UI Toolkit Event System to the UIDocument game object on your example the icon gets sized the right way. We're working on actually fixing this so we don't depend on the Event System, but if you want it to work in the meantime, you can try that out. Let us know how it goes! :cool:
     
  19. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
    Hi, @JuliaP_Unity.

    Thanks for the work around, it works fine in the editor. I still have my other issue with the custom element not working in builds but at least now, I can keep on improving the UI and testing it in editor while waitting for afix for the build side.
    Plus, I guess I'll need the event system to make my Ability UI interactible and accually trigger the ability ;)
     
  20. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    Last edited: Jul 31, 2020
  21. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
    uDamian likes this.
  22. Denis-535

    Denis-535

    Joined:
    Jun 26, 2022
    Posts:
    34