O'Reilly logo

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

Getting Started with Unity 5

Book Description

Leverage the power of Unity 5 to create amazing 3D games

In Detail

This book will guide you through the entire process of creating a 3D game, from downloading the Unity game engine to publishing your game.

Beginning with an overview of the Unity engine and its interface, you will walk through the process of creating a game environment and learn how to use built-in assets as well as assets created with third-party 3D modeling tools such as Blender.

Moving on, you will create your very own animation clips from within Unity and learn scripting in Unity. You will master exciting concepts including mini-mapping, the game navigation system, sound effects, shadows, and light effects. By the end of the book, you'll have learned advanced topics such as cross-platform considerations that enable your games to run on every platform.

What You Will Learn

  • Create, organize, and manage your game project with the Unity interface
  • Develop a 3D game environment with a custom terrain, water, sky, mountains, and trees
  • Import and use custom assets and asset packages to add characters to your game
  • Review existing animations and create custom animation clips to bring your game characters to life
  • Build custom scripts to make your game characters interactive
  • Add a graphical user interface to your game to enable easy user interaction
  • Explore advanced Unity concepts including workflow, scaling, physics, and cross-platform considerations
  • Customize your game with sound effects, shadows, lighting effects, and rendering options

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Getting Started with Unity 5
    1. Table of Contents
    2. Getting Started with Unity 5
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. Questions
    8. 1. Getting Jiggy with the Unity Interface
      1. Why Unity?
      2. Getting your hands on Unity
      3. Projects
      4. Layouts
        1. The Scene view
        2. The Game view
        3. The Hierarchy view
        4. The Project view
        5. The Inspector view
      6. Transform tools
      7. Cameras
      8. Summary
    9. 2. Creating the Game Environment
      1. Game design
        1. Game look
        2. Player objectives
        3. Gameplay
        4. User actions
        5. Artificial Intelligence
        6. End state
      2. Terrain
        1. Creating the terrain
        2. Adding mountains
        3. Adding a river
        4. Textures
      3. Additional environmental features
        1. Natural bridge
        2. Planting trees
        3. Water
        4. Creating the sky
      4. Summary
    10. 3. Working with Assets
      1. Assets
      2. Asset packages
      3. Unity Asset Store
      4. Adding assets to your game
        1. Using the Unity Asset Store
        2. Importing a custom asset package
          1. Importing the game characters
          2. Importing the buildings
      5. Using Blender to create assets for your game
      6. Summary
    11. 4. Animating the Game Characters
      1. Animation basics
      2. Character controllers
        1. First person controller
        2. Creating a third person controller
      3. Animating player characters
        1. Little farmer Colt
        2. Old farmer character
        3. Farm animals
      4. Previewing animations
      5. Creating animation clips
      6. Summary
    12. 5. Scripting the Game
      1. C# programming primer
        1. Syntax
        2. Naming conventions
          1. Class, function, and method names
          2. Camel case
          3. Abbreviations
          4. Special characters
        3. Data types
      2. Using MonoDevelop
      3. Scripting with C# in Unity
        1. Start and update functions
        2. Scripting example
        3. Unity scripting assets
      4. Scripting our game
        1. Script planning
          1. Gathering corn
          2. Gathering water
          3. Feeding piglets
          4. Feeding baby chicks
          5. Feeding pigs
          6. Feeding adult chickens
        2. Data requirements
          1. All about the pigs
          2. Chicks and chickens
          3. Corn and water
          4. Initializing our data
        3. Selective scripts
          1. Selective script – global variables
          2. Selective script – evoking the take animation
          3. Selective script – feeding the farm animals
          4. Organizing scripts
      5. Summary
    13. 6. Adding a Graphical User Interface
      1. An overview of GUI
        1. Functions of a GUI
          1. Feedback
          2. Control
          3. Feedback and Control
        2. Game Layers
      2. Unity 5's UI system
        1. Canvas
        2. Render mode
        3. Creating a GUI
      3. HUD
        1. Creating an HUD
      4. Mini-maps
        1. Creating a mini-map
      5. Game navigation
      6. Summary
    14. 7. Polishing and Optimizing the Game
      1. Sight and sound
        1. Unity's sound capabilities
          1. Audio listener
          2. Audio clips
          3. Audio source
          4. Implementing sound effects
        2. Visual effects
          1. Spotlight orb with halo effect
          2. Casting shadows
          3. Trail rendering
      2. Rendering options
        1. The Profiler window
        2. Rendering optimization
          1. Imposing limits
          2. Baking images
      3. Optimizing scripts
      4. Summary
    15. 8. What's Next?
      1. Improving our game
        1. Audio
        2. Visual effects
        3. Functionality
        4. Levels
      2. Project management
        1. Unity workflow
          1. Art and animation
          2. Scripts
          3. Other assets
        2. Scaling projects
      3. Development concepts
        1. Cross-platform considerations
        2. Plugins
        3. Attribution
      4. Advanced topics
        1. Particle systems
        2. Inventory control systems
        3. Dialog systems
      5. Summary
    16. Index