Skip to Content
Mastering UI Development with Unity
book

Mastering UI Development with Unity

by Dr. Ashley Godbold
April 2018
Beginner content levelBeginner
468 pages
11h 7m
English
Packt Publishing
Content preview from Mastering UI Development with Unity

Loading scenes with Button presses

Now that we have our start screen laid out, let's hook up the Play Button to play our "game". First, duplicate the scene you created in Chapter 4, The Event System and Programming for UI, called Chapter4, using Ctrl + D. The new scene should be called Chapter5. Our goal is to have the Play Button in Chapter5StartScreen load up the Chapter5 scene.

To make the Play Button in Chapter5StartScreen, load up the Chapter5 scene, complete the following steps:

  1. To transition between scenes within Unity, you must first ensure that they are each listed within the Scenes In Build list in the Build Settings. Select File | Build Settings (or Ctrl + Shift + B). The following should be visible:
  1. From the Project folder, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Game Development with Unity for .NET Developers

Game Development with Unity for .NET Developers

Jiadong Chen
Unity UI Cookbook

Unity UI Cookbook

Francesco Sapio

Publisher Resources

ISBN: 9781787125520Supplemental Content