Reader small image

You're reading from  Unity Game Development Essentials

Product typeBook
Published inOct 2009
Reading LevelIntermediate
PublisherPackt
ISBN-139781847198181
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Will Goldstone
Will Goldstone
author image
Will Goldstone

Will Goldstone is a longstanding member of the Unity community and works for Unity Technologies as a Technical Support Associate, handling educational content and developer support. With an MA in Creative Education, and many years experience as a lecturer in higher education, Will wrote the first ever Unity book, the original Unity Game Development Essentials, and also created the first ever video tutorials for the package. Through his sites http://www.unity3dstudent.com and http://learnunity3d.com Will helps to introduce new users to the growing community of developers discovering Unity every day.
Read more about Will Goldstone

Right arrow

Building the game


Now that we are ready to build the game, you need to consider the varying deployment methods discussed previously, and adapt the project to be built for the Web as well as a standalone game.

Adapting for web build

In Unity, the 3D world you work with is fully scaled by the engine to be presented in whatever resolution you specify in the Player Settings. We have also designed the menus in this book to be scalable in different resolutions by utilizing the Screen class to position GUIs based on current resolution. However, in order to learn about platform detection we will remove an element we don't want to be seen in our web version — the Quit button. In the Scripts folder in the Project panel, double-click the icon for MainMenuGUI2 to launch it in the script editor now.

Quit button platform automation

As this is a web build, the Quit button we have added to the menu is meaningless. This is because Application.Quit() commands do not function when a Unity game is played through...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity Game Development Essentials
Published in: Oct 2009Publisher: PacktISBN-13: 9781847198181

Author (1)

author image
Will Goldstone

Will Goldstone is a longstanding member of the Unity community and works for Unity Technologies as a Technical Support Associate, handling educational content and developer support. With an MA in Creative Education, and many years experience as a lecturer in higher education, Will wrote the first ever Unity book, the original Unity Game Development Essentials, and also created the first ever video tutorials for the package. Through his sites http://www.unity3dstudent.com and http://learnunity3d.com Will helps to introduce new users to the growing community of developers discovering Unity every day.
Read more about Will Goldstone