UI Toolkit Button not firing clicked event

I’m using the new UI Toolkit and new Input System together, and I’ve setup everything correctly the Input Controller has separate input for UI, the Input System UI Input Module is setup correctly, I made the Visual Tree, and my custom script has no errors, but for some reason my Button doesn’t fire the clicked event. Everything works, I made the button change color when active, which it does, but it doesn’t fire an event.


205355-4.jpg

What ever function I subscribe to the event doesn’t get called, not even anonymous functions.

I haven’t mentioned how my UI Controller works, turns out that disabling a UI Document removes all events. Just reassign the events in the OnEnable() method.