Creating Our Example Interface

Let’s create an interface example to give you an idea of how you can create your own. Our example is not in any way connected to our 2D platform Project, but by the time you read this you will have the new UGUI in your hands and can add it if you so choose! To begin, let’s create a new Scene.

Note

We assume you are running the Unity 4.6 Beta or later. While Unity 4.5.1 does include a basic Canvas and Rect Transform Component, they are merely shells of themselves from version 4.6. And besides, you should be running the latest and greatest anyway, right?

1. Start a new Unity Scene by using the shortcut Ctrl + N hotkeys.

2. Create a Canvas GameObject by going to the GameObject menu > UI > Canvas.

3. Set the Render ...

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.