You are previewing Building Levels in Unity.
O'Reilly logo
Building Levels in Unity

Book Description

Create exciting 3D game worlds with Unity

In Detail

Unity is a top industry choice, perfected for video game development, simulation creation, and environmental design. Its accessibility, flexible tuning, and fair licensing have made it the number one option for independent developers throughout the world.

From the basics to a playable demo, this book will help you build levels in Unity with hands-on practices.

Full of practical examples, it will start by getting you comfortable with the engine as it will enable you to freely navigate and complete tutorials with ease. The book will walk you through the technical requirements of importing your own assets, created with popular 2D and 3D applications, and how to optimize and enhance them with Unity.

By the end of the book, you will get accustomed to Unity editor and will be able to develop a fully-featured game world in Unity.

What You Will Learn

  • Get familiar with Unity editor by learning basic tools and features

  • Import and configure custom props and environmental assets

  • Use Mecanim and Animate props inside Unity

  • Discover details and nuances of character, import and create locomotion with Mecanim

  • Work with lighting to greatly enhance the environment

  • Create transitions, apply final touches, and journey through levels as a standalone application

  • Bring sound and particle effects to your levels

  • 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. Building Levels in Unity
      1. Table of Contents
      2. Building Levels in Unity
      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. Meet Unity
        1. Starting a project
        2. Windows
          1. The Scene window
            1. Scene navigation
              1. Arrow navigation
              2. Mouse navigation
              3. Flythrough
              4. Gizmo
          2. The Game window
            1. Play testing
            2. Game window controls
          3. The Hierarchy window
          4. The Inspector window
          5. The Project window
            1. Importing custom packages into the project
            2. Search
              1. Creating a custom search
            3. Rename
          6. The Console window
          7. Window controls
            1. Changing the window layout
              1. Creating a custom layout
        3. The purpose of a Main Camera object
        4. Creating primitives
        5. Summary
      9. 2. Importing and Configuring Props
        1. Object manipulation
          1. Snapping
          2. Greyblocking
        2. Components
          1. Adding components
          2. Component deactivation
          3. Component options
        3. Importing props into Unity
          1. Supported formats
          2. Exporting from Blender
            1. Object setup before exporting
          3. The importing process
        4. Configuring meshes
          1. Model-meshes options
          2. Double-sided normals
          3. Labels
        5. Prefabs
        6. Object parenting
          1. Parenting and prefabs
          2. The pivot point
        7. Configuring textures
          1. Supported formats
          2. Preparing textures for export
          3. Settings for various texture types
        8. What are Materials?
          1. Materials in Unity
          2. Creating Materials
          3. Shader types
            1. Material parameters
            2. Rendering modes
        9. Using LODs in Unity
          1. How to prepare LODs
          2. Setting up LODs in Unity
          3. LODBias
        10. Collider
        11. Summary
      10. 3. Shaping Landscape
        1. Creating terrain
          1. Sculpting
        2. Brushes
          1. Creating a brush
          2. Importing a brush
        3. Creating the terrain using heightmaps
          1. Drawing a heightmap
          2. Exporting a heightmap
          3. Applying heightmap to a terrain
        4. Level meshing
        5. Object layers
        6. The terrain texture
          1. Importing textures
          2. Texturing the terrain
        7. Water in Unity
        8. Adding trees to the level
        9. Learning to use the Unity Tree editor
        10. Paint details
          1. What is considered a detail?
          2. How to set up details
            1. Grass
            2. Details
        11. Customizing terrain settings
          1. Base terrain
          2. Tree and detail objects
          3. Resolution
        12. Skybox
        13. Summary
      11. 4. Dealing with Basic Animations
        1. Animation basics
          1. Using the Animation editor
          2. Creating custom animations
          3. Editor controls
          4. The Curve editor
          5. Give it a try
          6. Custom animations and world space
          7. Triggering the event handlers with animation
          8. Importing the prop animation into Unity
        2. Summary
      12. 5. Invite Your Characters to Unity
        1. Get your character ready
        2. Exporting from Blender
          1. Model overview
          2. Exporting as FBX
          3. Importing referenced animations
        3. Configuring a character in Unity
          1. Generic and humanoid – what's the difference?
            1. Generic Animation Type
            2. Humanoid Animation Type
              1. Character avatar
              2. Correct topology
            3. Wrong topology example
              1. Muscles
              2. Adjust character muscles
          2. Additional options
        4. Summary
      13. 6. Using Mecanim for Advanced Animations
        1. The animator controller
        2. Animation states
          1. States
          2. Parameters
            1. Parameter types
          3. Setting conditions for transitions
          4. Blend trees
            1. Overview
            2. Creating a blend tree
            3. Inside the blend tree
            4. Other blend tree options
          5. Adjust Time Scale
          6. Layers
            1. Creation
            2. Hand waving on move motion
          7. 2D blending
            1. Blending variations
            2. It's all about the dots
          8. Creating locomotion
            1. Setup
            2. Walking
            3. Turning
            4. Strafing
              1. A sub-state machine
              2. Modifying a strafing clip
              3. Transition from and to sub-state
        3. Summary
      14. 7. Lighting Up the World
        1. Light component
        2. Light types
          1. Point light
          2. Spot light
          3. Directional light
          4. Area light
        3. Ambient light
        4. Global Illumination
          1. Preparing the environment
          2. Static versus dynamic objects
          3. Fixing the light coming from the crack
          4. Emission materials
          5. Shadows
        5. Lightmapping
          1. Static versus dynamic lights
          2. Dynamic shadows versus static shadows
          3. Lighting options
        6. Bringing lights into the level
        7. Light probes
        8. Reflection probes
          1. Reflection probe settings
            1. Types of reflection probes
            2. Runtime settings
            3. Cubemap capture settings
          2. Positioning of a reflection probe
        9. Continuous baking
          1. Adding probes to the level
        10. Projectors
          1. Basic application
          2. Other applications
        11. Lighting effects
          1. Light cookies
            1. Creating light cookies
          2. Flares and halos
            1. Halo
            2. Flare
        12. Summary
      15. 8. Bringing the Sound
        1. Audio sources and receivers
          1. Audio listener
          2. Audio source
          3. Audio clips
          4. 2D versus 3D sounds
        2. Introduction to audio mixer
          1. How does it work?
          2. Modifying at runtime
        3. Filters and reverb zones
        4. Summary
      16. 9. Exploring the Particle System
        1. What are particles?
        2. The particle editor
        3. Creating a waterfall
          1. Setting up assets
          2. Configuring the particle system
            1. Emitting direction
            2. Configuring particles
            3. Polishing
            4. Texture sheet animation
        4. Coin particles
        5. Summary
      17. 10. Final Editing and Build
        1. Rigidbodies
        2. Project settings
        3. Scene configuration
        4. Level loading and streaming
        5. Level loading limitations
        6. Publishing the level
        7. Summary
      18. Index