O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

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

Time for action - prepare the game Scene

We need to repeat a few steps that we followed in the title scene to set up our game scene.

  1. Go to GameObject | Create Empty and rename the new Game Object GameScreen.
  2. Create a new JavaScript file from the Project panel and name it GameScript.
  3. If you'd like to stay tidy, create a folder in the Project panel and rename it as Scripts. Drag your TitleGUI and GameScript scripts into the new Scripts folder to keep them organized.
  4. Drag-and-drop the GameScript script from the Project panel onto the GameScreen Game Object in the Hierarchy panel to link the script to a Game Object.
  5. If you feel so inclined, you can set up a customSkin variable in the script, and link up your MyGUI custom GUI skin to the script. This ...

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