Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity 2021.1.0b1 does is incompatible/doesn't ship with UITK

Discussion in 'UI Toolkit' started by broots, Jan 12, 2021.

  1. broots

    broots

    Joined:
    Dec 20, 2019
    Posts:
    54
    Hiya guys, I just installed 2021.1.0b1 based on the roadmap thread
    "What will be included?
    The version shipping in 2021.1 is aimed at programmers and UI artists collaborating on mobile and desktop games UI. Here’s a non-exhaustive list of the included features:"

    However it doesn't actually appear that 2021.1 includes the UITK runtime package, nor does it appear compatible with the 1.0.0-preview 13

    Several compilation errors are thrown:
    Code (CSharp):
    1.  
    2. C:\Program Files\Unity\Hub\Editor\2021.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\UIElements\PanelRaycaster.cs(13,50): error CS0246: The type or namespace name 'IRuntimePanelComponent' could not be found (are you missing a using directive or an assembly reference?)
    3.  
    4. C:\Program Files\Unity\Hub\Editor\2021.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\UIElements\PanelEventHandler.cs(12,9): error CS0246: The type or namespace name 'IRuntimePanelComponent' could not be found (are you missing a using directive or an assembly reference?)
    5.  
    6. C:\Program Files\Unity\Hub\Editor\2021.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\EventSystem.cs(378,53): error CS0122: 'BaseRuntimePanel' is inaccessible due to its protection level
    7.  
    8. C:\Program Files\Unity\Hub\Editor\2021.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\UIElements\PanelEventHandler.cs(14,17): error CS0122: 'BaseRuntimePanel' is inaccessible due to its protection level
    9.  
    10.  
    11.  
    12. C:\Program Files\Unity\Hub\Editor\2021.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\UIElements\PanelRaycaster.cs(15,17): error CS0122: 'BaseRuntimePanel' is inaccessible due to its protection level
    13.  
    14.  
    Removing the package does let things compile but obviously there's no way to use runtime UI, should I downgrade for the time being to use runtime UITK?

    Cheers.
     
    IShol, Markus4Unity, oobartez and 2 others like this.
  2. Lukas_Kastern

    Lukas_Kastern

    Joined:
    Aug 31, 2018
    Posts:
    97
    Also interested in this. Is a release that supports 2021.1 already planned?
     
    herkip likes this.
  3. oobartez

    oobartez

    Joined:
    Oct 12, 2016
    Posts:
    160
    We're also interested in this, 2021.1 is supposed to include UIToolkit 1.0 but the beta does not seem to have it and we weren't able to set it up with 1.0.0-preview 13.
     
    MoonbladeStudios likes this.
  4. Schodemeiss

    Schodemeiss

    Joined:
    Jan 4, 2018
    Posts:
    43
    Same problem here.
    Unity 2021.1.0b2.1745
    UI Toolkit 1.0.0-preview.13

    I was hoping to use the UI Toolkit at Runtime for my next game project.
     
    MoonbladeStudios likes this.
  5. uMathieu

    uMathieu

    Unity Technologies

    Joined:
    Jun 6, 2017
    Posts:
    384
    Preview14 is currently going through QA validation and will fix incompatibility with 2021.1 beta. Stay tuned, we'll post an update here once it's released
     
  6. matthewerwin

    matthewerwin

    Joined:
    Dec 22, 2020
    Posts:
    1
    @uMathieu any timeline updates on wrapping QA for this? We have a variety of issues with UITK and hoping to work with the beta to determine if we have to find an alternative or if we can anticipate this will resolve the problems.

    Does the team ever make tarball releases available ahead of waiting for preview-14 to show up under GIT urls?
     
    Schodemeiss likes this.
  7. rui-lima

    rui-lima

    Joined:
    Aug 22, 2019
    Posts:
    5
    Oh man, I thought I was going crazy.... spent so much time trying to figure out why I was getting that error. Should have come here first. :(
     
    Schodemeiss likes this.
  8. Schodemeiss

    Schodemeiss

    Joined:
    Jan 4, 2018
    Posts:
    43
    Yes. This. We're really keen to get our project going using UI Toolkit at Runtime, which currently isn't possible in the Beta. Can't be that tricky to ship the package as is? It's already broken anyway.

     
  9. uMathieu

    uMathieu

    Unity Technologies

    Joined:
    Jun 6, 2017
    Posts:
    384
    1.0.0-preview14 is out today. Let me know if your encounter any issues
     
  10. Nexer8

    Nexer8

    Joined:
    Dec 10, 2017
    Posts:
    271
    Samples trow errors because of missing EventSystem. What is the replacement of the EventSystem or has it moved?
     
  11. broots

    broots

    Joined:
    Dec 20, 2019
    Posts:
    54
    Works perfectly on the beta for me, seems like there's been significant performance improvemements too.

    Cheers, thanks for the updates!
     
  12. uMathieu

    uMathieu

    Unity Technologies

    Joined:
    Jun 6, 2017
    Posts:
    384
    @Xenerade Did you update the samples? If so, let me know which version of the editor, if you`re using the new input system, and which sample is throwing errors.
     
  13. Nexer8

    Nexer8

    Joined:
    Dec 10, 2017
    Posts:
    271
    No, I did not update the samples. In retrospect, that was probably the reason.