O'Reilly logo

Unity 3.x Game Development Essentials by Will Goldstone

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

Building the game

Now that we are nearly 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 Player 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 that 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 ...

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