In this video tutorial I show several method on how to handle button click events with the Unity Game Engine and the new Unity UI controls and API.

In the latest one I demonstrate how to register a button click event with C# dynamically in a script. The button is defined by a public varaible and then a listener is added so that you can react in a callback method.

In this tutorial I show how to open a panel (activate it) when a button is pressed. Here also a c# script is attached for which a method is called when cicking a button.

In the last video that I want to show you here I am also calling a C# method method when a button is pressed, but in this I get the text of the button in the C# script and change it.


I hope you like the video tutorial for Unity and C#, if you have any questions please add these to the video comments.

(Visited 296 times, 1 visits today)