UI Document as GameObject dissapeared (Not in the hierarchy)? [SOLVED]

Hello!

Just a heads up, I’m a beginner!

I wanted to use the UI Toolkit but I can’t because when I was following a tutorial, (This one: Get started with UI Builder (UI toolkit) - time to ditch old UI system? - YouTube), he started to create a UI Document in the project hierarchy but… It wasn’t there for me. I’m using the Unity 2021.1.16f1 version (Personal) and it’s a URP project.

TL;DR: I can create UI Document in the Project panel but not in the hierarchy.

For version 2021.1 of Unity, you need the UI Toolkit package in order to get the UIDocument component because prior to 2021.2 that’s the only way to get Runtime UI with UI Toolkit.
We’re in the process of publishing a new version of that package (preview.15) and you’ll need that one because the previous one won’t be compatible with that version of Unity (2021.1.16f1) so if you try to install the package and get errors that’s why.
You can follow the instructions in this Forum thread about how to install the package.

Oh thank you so much!

Oh thank you so much! It worked! I’m so sorry for replying so late!

1 Like