UnityEditor cannot find rootVisualElement

In Unity 2018 LTS, I have an EditorWindow class and cannot get the rootVisualElement. I’m finding this item all over the place in documentation and tutorials, but it seems to be missing from my EditorWindow right now. Am I missing some special additional using statement that extends EditorWindow? Has it changed to something else?

  • Thanks.

5322780--535734--upload_2019-12-29_13-29-49.png

I just heard this is a 2019 thing, and I’m using 2018.4. I don’t want to move from LTS. Oh well.

Hi, on 2018.X UIElements is still experimental and this has changed since then.
The equivalent is GetRootVisualContainer();

THANKS!!! That worked. Or at least I got past this part of the blocker. Hoping everything else will work too now…

In 2018 UIElements was still experimental. We have this document which highlights the most important differences with 2019 : 2019.1 migration guide