O'Reilly logo

Mastering Unity 2017 Game Development with C# - Second Edition by Alan Thorn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The button

The canvas object is now properly configured for a multiresolution setup. Due to the Canvas Scaler (Script) component, it can be resized automatically to fit many resolutions and devices, from desktop computers to mobile devices. However, the canvas object right now has no controls or widgets on it; buttons, images, or text edits, and so on. Specifically, we need to add the forwards button. To do this, select the canvas object in the Hierarchy panel, and right-click on it. From the context menu, choose UI | Button:

Adding the UI button

All newly added buttons appear as a default, white button, which should be clickable. When adding ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required