Unity Game Development Essentials

Will Goldstone

eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49 save 15%!
Print book: $49.99
$44.99 save 10%!
Print + eBook bundle: $79.98
Includes free access to the book on PacktLib
$49.49 save 38%!
Free Shipping! UK, US, Europe and selected countries in Asia.
This book can also be purchased from:
Overview
Table of Contents
The Author
Reviews
Downloads
  • Kick start game development, and build ready-to-play 3D games with ease
  • Understand key concepts in game design including scripting, physics, instantiation, particle effects, and more
  • Test & optimize your game to perfection with essential tips-and-tricks
  • Written in clear, plain English, this book is packed with working examples and innovative ideas
  • This book is based on Unity version 2.5 and uses JavaScript for scripting

Book Details

Language : English
Paperback : 316 pages [ 235mm x 191mm ]
Release Date : October 2009
ISBN : 184719818X
ISBN 13 : 978-1-847198-18-1
Author(s) : Will Goldstone
Topics and Technologies : All Books, Unity, Games

Back to BOOK PAGE

Table of Contents

Preface
Chapter 1: Welcome to the Third Dimension
Chapter 2: Environments
Chapter 3: Player Characters
Chapter 4: Interactions
Chapter 5: Prefabs, Collection, and HUD
Chapter 6: Instantiation and Rigid Bodies
Chapter 7: Particle Systems
Chapter 8: Menu Design
Chapter 9: Finishing Touches
Chapter 10: Building and Sharing
Chapter 11: Testing and Further Study
Index
  • Chapter 1: Welcome to the Third Dimension
    • Getting to grips with 3D
      • Coordinates
      • Local space versus World space
      • Vectors
      • Cameras
      • Polygons, edges, vertices, and meshes
      • Materials, textures, and shaders
      • Rigid Body physics
      • Collision detection
    • Essential Unity concepts
      • The Unity way
        • Assets
        • Scenes
        • Game Objects
        • Components
        • Scripts
        • Prefabs
    • The interface
      • The Scene window and Hierarchy
      • The Inspector
      • The Project window
      • The Game window
    • Summary
  • Your first Unity project
  • Using the terrain editor
    • Terrain menu features
      • Importing and exporting heightmaps
      • Set Heightmap resolution
      • Creating the lightmap
      • Mass Place Trees
      • Flatten Heightmap
      • Refresh Tree and Detail Prototypes
    • The terrain toolset
      • Terrain Script
      • Raise Height
      • Paint height
      • Smooth height
      • Paint Texture
      • Place Trees
      • Paint Details
      • Terrain Settings
    • Sun, Sea, Sand—creating the island
    • Take Me Home! Introducing models
      • Importing the model package
      • Common settings for models
      • Setting up the outpost model
  • Summary
  • Chapter 3: Player Characters
    • Working with the Inspector
      • Tags
      • Layers
      • Prefabs and the Inspector
    • Deconstructing the First Person Controller object
      • Parent-child issues
      • First Person Controller objects
        • Object 1: First Person Controller (parent)
        • Object 2: Graphics
        • Object 3: Main Camera
    • Scripting basics
      • Commands
      • Variables
      • Functions
      • If else statements
      • Globals and dot syntax
      • Comments
      • Further reading
  • The FPSWalker script
    • Launching the script
    • Deconstructing the script
  • Summary
  • Adding the outpost
    • Positioning
    • Scaling
    • Colliders and tagging the door
    • Disabling automatic animation
  • Opening the outpost
    • Approach 1—Collision detection
      • Creating new assets
      • Scripting for character collision detection
      • Attaching the script
    • Approach 2—Ray casting
      • Disabling collision detection—using comments
      • Resetting the door collider
      • Adding the ray
  • Summary
  • Chapter 5: Prefabs, Collection, and HUD
    • Creating the battery prefab
      • Download, import, and place
      • Tagging the battery
      • Scale, collider, and rotation
        • Enlarging the battery
        • Adding a trigger collider
        • Creating a rotation effect
        • Saving as a prefab
    • Scattering batteries
    • Displaying the battery GUI
      • Creating the GUI Texture object
      • Positioning the GUI Texture
      • Scripting for GUI change
    • Battery collection with triggers
    • Restricting outpost access
      • Restricting access
        • Utilizing GetComponent()
      • Hints for the player
        • Battery GUI hint
        • GUI Text hint
        • Using fonts
    • Summary
  • Chapter 6: Instantiation and Rigid Bodies
    • Introducing instantiation
      • In concept
      • In code
        • Passing in an object
        • Position and rotation
    • Introducing rigid bodies
      • Forces
      • The Rigidbody component
    • Making the minigame
      • Creating the coconut prefab
        • Creating the textured coconut
        • Adding physics
        • Saving as a prefab
      • Creating the Launcher object
      • Scripting coconut throws
        • Checking for player input
        • Playing feedback sound
        • Instantiating the coconut
        • Naming instances
        • Assigning velocity
        • Safeguarding collisions
      • Script and variable assignment
      • Instantiate restriction and object tidying
        • Activating coconut throw
        • Removing coconuts
      • Adding the coconut shy platform
        • Import settings
        • Placement
        • Coconut detection script
        • Script assignment
        • Making more targets
      • Winning the game
        • Variable setup
        • Checking for a win
        • Script assignment
        • Incrementing and decrementing targets
      • Finishing touches
        • Adding the crosshair
        • Informing the player
    • Summary
  • Chapter 7: Particle Systems
    • What is a particle system?
      • Particle emitter
      • Particle Animator
      • Particle Renderer
        • In summary
    • Making the task
      • Asset download
      • Adding the log pile
      • Creating the fire particle systems
        • Making fire
        • Making smoke
        • Adding audio to the fire
      • Lighting the fire
        • Adding the matches
        • Creating the Matches GUI
        • Collecting the matches
        • Setting fire
    • Testing and confirming
    • Summary
  • Chapter 8: Menu Design
    • Interfaces and menus
      • Making the main menu
        • Creating the scene
        • Cancelling mip mapping
        • Adding titling
    • Creating the menu—approach 1
      • Adding the play button
        • GUI Texture button script
        • Assigning public member variables
        • Adding the instructions button
        • Adding the quit button
        • Using debug commands to check scripts
    • Creating the menu—approach 2
      • Disabling Game Objects
      • Writing an OnGUI() script for a simple menu
        • Fixed versus layout
        • Public member variables
        • The OnGUI() function
        • Flexible positioning for GUIs
        • Adding UnityGUI buttons
        • Opening scenes with custom functions
        • GUI skin settings
      • Decision time
    • Summary
  • Chapter 9: Finishing Touches
    • Volcano!
      • Positioning the particle system
      • Downloading assets
      • Making the smoke material
      • Particle system settings
        • Ellipsoid Particle Emitter settings
        • Particle Animator settings
      • Adding audio to the volcano
      • Volcano testing
    • Coconut trails
      • Editing the Prefab
      • Trail Renderer component
      • Updating the prefab
    • Performance tweaks
      • Camera Clip Planes and fog
      • Ambient lighting
    • Instructions scene
      • Adding screen text
      • Text Animation using Linear Interpolation (Lerp)
      • Menu return
    • Island level fade-in
      • UnityGUI texture rendering
    • Game win notification
    • Summary
  • Chapter 10: Building and Sharing
    • Build Settings
      • Web Player
        • Player Settings
      • Web Player Streamed
      • OS X Dashboard Widget
      • OS X/Windows Standalone
    • Building the game
      • Adapting for web build
      • Texture compression and debug stripping
      • Building standalone
        • Indie versus Pro
      • Building for the Web
        • Adapting web player builds
    • Quality Settings
    • Player Input settings
    • Sharing your work
    • Summary
  • Chapter 11: Testing and Further Study
    • Testing and finalizing
      • Public testing
        • Frame rate feedback
        • Boosting performance
    • Approaches to learning
      • Cover as many bases as possible
      • If you don't know, just ask!
    • Summary
Back to BOOK PAGE

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.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Find your book in our support section to find errata and to download code samples.

What you will learn from this book

  • An understanding of the Unity 3D Engine and game development
  • Build a 3D island and set of mini-games for your players
  • Incorporate terrains and externally produced 3D models to get your game environment up and running
  • Build your own first person player character
  • Combine scripting and animation to transform your static objects into dynamic interactive game elements
  • Add realism to your games by using particle systems
  • Create a professional, easy-to-navigate menu and link the menu scene with levels of your game
  • Add sound, lighting effects, realistic shadows, and other dynamic effects to your game environment
  • Creating stunning user interfaces with textures and scripting

Special Offers

PacktLib gives you access to this and 600+ other titles with an annual or monthly subscription.

Annual subscription:

$220.00 per annum

Monthly subscription:

$21.99 per month

Buy 2 eBooks
and Get 50% Off
+
Buy Unity Game Development Essentials with Unity 3.x Game Development Essentials and get 50% off both the eBooks.
Just add both the eBooks to your shopping cart and enter 3undegeb in the 'Enter Promotion Code' field. Click 'Add Promotion Code' and the discount will be applied.
View more Unity book offers here  |  View Best Selling eBook offers

In Detail

Game engines are central to the video games we know and love. From the artwork to the mathematics that underpin the frames onscreen, the engine calls the shots. Aside from offering one of the leading 3D game engines, Unity also provides a superlative development tool – a tool that can produce professional standard games for Mac, PC, and the Unity Web Player.

This book is a complete exercise in game development covering environments, physics, sound, particles, and much more, to get you up and working with Unity quickly.

Taking a practical approach, this book will introduce you to the concepts of developing 3D games before getting to grips with development in Unity itself. From creating 3D worlds to scripting and creating simple game elements you will learn everything you’ll need to get started with game development for the PC, Mac, and Web.

This book is designed to cover a set of easy to follow examples, which culminate in the production of a First Person 3D game, complete with an interactive island environment. By introducing common concepts of game and 3D production, you'll explore Unity to make a character interact with the game world, and build puzzles for the player to solve, in order to complete the game. At the end of the book, you will have a fully working 3D game and all the skills required to extend the game further, giving your end-user, the player, the best experience possible. Soon you will be creating your own 3D games with ease!

Get started with game development using the Unity game engine with this hands-on, easy-to-follow guide

Approach

This book follows an informal, demystifying approach to the world of game development with the Unity game engine. With no prior knowledge of game development or 3D required, you will learn from scratch, taking each concept at a time working up to a full 3D mini-game. You'll learn scripting with JavaScript and master the Unity development environment with easy to follow stepwise tasks.
The printed version of the book is in black and white, but a full color version of the images is available for download here. The eBook version, available from Packt, is in full color.

Who this book is for

If you’re a designer or animator who wishes to take their first steps into game development, or if you’ve simply spent many hours sitting in front of video games, with ideas bubbling away in the back of your mind, Unity and this book should be your starting point. No prior knowledge of game production is required, inviting you to simply bring with you a passion for making great games.

Are there no books available that are right for you at the moment? How about signing up to our newsletter to keep up to date?
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Sort A-Z