Search Unity

Question 2021.1 is now released, would there be a 'non-preview' package of UI Toolkit available in 2020 LTS?

Discussion in 'UI Toolkit' started by osimaleki, Mar 24, 2021.

  1. osimaleki

    osimaleki

    Joined:
    Jan 15, 2020
    Posts:
    35
    We are building an app for mobile and the new UI builder, Toolkit is awesome for it. My question is do we need to eventually update to 2021.1 for production or 2020 LTS will have these packages available as an installable package?

    Thank you!
     
  2. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    1,003
    Hello!

    The UI Toolkit package will always be in preview form. The UI Toolkit that ships built-in with the editor is the "non-preview" released version.

    So, the 2021.2 (not 2021.1 likeI previously wrote) Unity version will have UI Toolkit + Runtime support built into the editor, no package required.

    Hope this helps!
     
    Last edited: Mar 25, 2021
  3. osimaleki

    osimaleki

    Joined:
    Jan 15, 2020
    Posts:
    35
    For sure! great to know. Thank you.
     
  4. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    1,003
    Correction: 2021.2 will have UI Toolkit + Runtime included, not 2021.1. The preview package will still be required for 2021.1 to get the runtime support.

    Sorry for the confusion!
     
  5. Nexer8

    Nexer8

    Joined:
    Dec 10, 2017
    Posts:
    271
    Are you still adding new features to the package, or is it just bug fixes with the new features being included in the built-in version?
     
  6. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    1,003
    Our main way to develop is no longer through the package. Being backward compatible with multiple versions of Unity at once was more demanding than expected. We are now developing new features in the latest version of unity. However, most bugfixes and features that don't break backward compatibility will be brought back to the package.
     
    Nexer8 likes this.
  7. I have to mention that I don't like this at all. I find it devastatingly counterintuitive. In all other cases the understanding of built-in vs package goes by: if you want to use/test/evaluate the stable version, use the one shipped with the editor. If you want to play with the latest, cutting-edge preview stuff, install the package. It seems that your release logic is the exact opposite what other parts of Unity is doing.

    If it is true and I didn't misunderstand something, it is super bad.
     
  8. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    1,003
    It is mostly a workflow change on our side. We develop in the Unity main branch first, then we take a "snapshot" of that to make a new com.unity.ui package version. We release the package long before the next Unity version will be available, so from you point of view, you will still get the fixes and features sooner.

    There might be times where we cannot release a new package when the fixes or features cannot be backported.
     
  9. IcyHammer

    IcyHammer

    Joined:
    Dec 2, 2013
    Posts:
    71
    I just installed Unity 2021.1.0f1 (64-bit) and it seems like everything is included already, the thing I noticed is Ui Document component is missing so I can't actually use ui in-game and I can't see ui toolkit in package manager, preview is enabled. Any ideas?
     
  10. IcyHammer

    IcyHammer

    Joined:
    Dec 2, 2013
    Posts:
    71
    Ok, I just found out that I have to manually add com.unity.ui, it's not listed even if I enabled show preview packages?
     
  11. kevinwhoffman

    kevinwhoffman

    Joined:
    Dec 18, 2020
    Posts:
    4
    If you want to create runtime UI using Unity Toolkit in Unity 2021.1.0f1, then you still must install the UI Toolkit package to access the UI Document component. As stated above, Unity 2021.2 should include UI Toolkit + Runtime, at which time the separate package will no longer be required.

    My understanding is that "Pre-release" packages will display in the package manager if you have the pre-release packages enabled in Project Settings > Package Manager. However "Experimental" packages (such as UI Toolkit) must be added manually installed via the Git URL.
     
  12. IcyHammer

    IcyHammer

    Joined:
    Dec 2, 2013
    Posts:
    71
    Thanks!