UI Toolkit Editor Window - cant find Toogle class

Hi!

Using Unity 2021.1.16f

In the UI Toolkit documentation page:

  • To create Editor-only user interfaces, use the built-in version of UI Toolkit.

I’m creating an Editor Window loading an UXML file. I was able to use UQuery to access the buttons:

root.Q<Button>("ButtonAdd").clicked += ButtonAddClick;

But not a Toogle. It can’t be found in project

root.Q<Toogle>...

The type or namespace name ‘Toogle’ could not be found (are you missing a using directive or an assembly reference?)

I’m assuming that I don’t need to install the package from com.unity.ui as documentation said.
Am I missing something here?

Tks.

There is a typo, it should be Toggle, not Toogle

1 Like

My fault, sorry.