Prime31 UIToolkit. Help needed please

I’m pretty new to Unity and have been working with UIToolkit. I have my buttons on screen, I’ve made a main menu and also some buttons on the HUD of my main game scene.

I can’t figure out how to make something happen if the buttons are pressed. The buttons I have are:

Start button > needs to load a new scene.

State button > has 2 states and needs to do a different thing depending on what state it is in.

Any help would be appreciated. :slight_smile:

You need to hook up delegates, have a look at the posted introduction videos.
They are a bit older, but the concept is still the same.

Thanks, I missed the delegates tutorial. :roll_eyes:

That explains it all, right before bed. Looks like a long night of not sleeping and thinking about scripting is ahead! lol