I’m currently experimenting with UI Toolkit. And I created some buttons and stuff.
Additionally I created a UIDocument and assigned the uxml file.
It works, but how to connect events with the button?
I’m having the same issue, particularly if I’m trying to use it during runtime on Unity 2020.3.3f1
I wish the documentation was as laid out as with other base classes like Vector3, but for the most part without any examples I can’t really get around issues I’m having. Heck all I really want to do is change some label text, but cannot seem to get the right Query.
This is an old thread but it came up when I was searching for something and so I wanted to share that we’ve added new runtime documentation for 2023.1:
There’s also this recent blog post about Runtime UI for 2021 LTS: