Onlyreon
Sasquatch B Studios from patreon
Sasquatch B Studios patreon

Getting Started with UI Toolkit

🕑 Added 2024-03-12 13:31:36 +0000 UTC
Getting Started with UI Toolkit

Comments

Sasquatch B Studios

didn't know about either of those, thanks for the heads up, I'll remember that!

Christopher Vikner

Nice video! Learned a few tricks, even though I've made a few menus with UI Toolkit already. If you don't like casting to Button (like me), you can also do it like this: _button = _document.rootVisualElement.Q< Button >("StartGameButton"); and you can also do like this if you don't want the RegisterCallback way: _button.clicked += OnButton_Clicked; private void OnDisable() { _button.clicked -= OnButton_Clicked; } private void OnButton_Clicked() { } This way you won't get that Event parameters that you most likely won't ever need. Edit: Seems liks < and > gets omitted, so I had to add space in the Q-code above. It should obviously not be spaces there.


More Creators