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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question UIDocument component missing with Unity 2020.3.35f1 + UI Toolkit 1.0.0-preview.18

Discussion in 'UI Toolkit' started by Codalyn, Jun 2, 2022.

  1. Codalyn

    Codalyn

    Joined:
    Dec 30, 2014
    Posts:
    41
    I've downgraded my project to Unity 2020.3.35f (to use DOTS), which doesn't yet have UI Toolkit built in, which my project also uses. To remedy that, I've added the latest version of the UI Toolkit package through the package manager...

    However, despite the package being installed and everything compiling okay, Unity doesn't see the UIDocument class. The GameObject which has the UIDocument attached shows it as a missing component. Is there anything else I need to do to get UI Toolkit working under 2020.3.35f?
     
  2. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    522
    There is a log of things going on between version, and downgrades are not supported. The GUID identifying the class was changed between the version you were using and 2020.3 : in the newer version of unity, you could go in the in
    window->UI Toolkit-> package asset conversion
    before transferring your assets to 2020.3. If this doesn't work, you will have to create some new UIDocuments, PanelSettings and assign the proper values inside.
     
  3. Codalyn

    Codalyn

    Joined:
    Dec 30, 2014
    Posts:
    41
    Ugh. What a mess!

    I think I am going to forego experimenting with DOTS at this time.