Buttons

One of the most common UI elements is a simple button. Pretty much all UI interfaces on the most commonly available Unity platforms contain buttons. The simplest interaction with a button is a click. You will now learn how to construct a button in Unity UI and call a certain method in the code when the button is clicked on.

To speed up your learning process, I have prepared ready-to-use UI elements.

Download and import MenuViewUIElements.unitypackage into your Unity project, as follows:

Buttons

Unity will import a few useful assets with this package. In the Project View, find Prefabs/UI/PlayButton.prefab and drag it directly on top of the Menu Canvas, ...

Get Unity 5: Learning C# by Developing Games now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.