Start building commercial and playable games in Unity with C# through a series of practical projects ranging from a simple 2D game to adding AR/VR experiences with this full-color guide
Key Features
- Create game apps, including a 2D adventure game, a 3D first-person shooter, and more
- Explore Unity's component-based approach to implementing features in Unity 2022 through a GameObject hierarchy based on C# scripts
- Follow steps for publishing, marketing, and maintaining your games effectively
Book Description
Unity 2022 by Example is a complete introduction to building games in Unity following a project-based approach. You'll be introduced to the Unity game engine and the tools available for building and customizing a game exactly the way you want while maintaining a good code foundation to build upon.
Once you get familiar with the fundamentals of Unity game development, you'll start creating a 2D collection game and an adventure game followed by a 3D first-person shooter game. You'll then explore advanced topics such as machine learning by creating AI-based enemy behavior, virtual reality by extending the first-person game, and augmented reality by exploring a farming sim in a real-world setting. These topics are completed in practice while building projects using the latest game tool kits. Finally, you'll learn how to commercialize your game by publishing it to a distribution platform and maintain and support it throughout its lifespan. As you progress, you'll gain real-world knowledge and experience by taking a game from conceptual design to completion.
By the end of this Unity book, you'll have strong foundational knowledge of how to structure a Unity project that is both maintainable and extensible for commercially released games.
What you will learn
- Navigate and use the primary windows of the editor, and the new features introduced in Unity 2022
- Create new Unity game projects and add functionality with C# code
- Specify your game design and break it down into systems and components for implementation
- Create beautiful playable environments quickly and use them for both 2D and 3D games
- Build player characters and use them to develop complete game mechanics, the core game loop, and win/lose conditions
- Get up to speed with Unity Gaming Services available for creating commercially viable games
Who This Book Is For
If you find yourself struggling with completing game projects in Unity and want to follow best practices while maintaining a good coding structure, then this book is for you. Aspiring game developers, as well as anyone with some experience in developing games who wants to design basic playable and commercial games in Unity with a core loop, player verbs, simple mechanics, and win/lose conditions will find this book useful. Readers are expected to have experience with the Unity Editor interface and implementing functionality by creating C# scripts.
Table of Contents
- Foundational Knowledge in Unity 2022
- Creating a 2D Collection Game
- Completing the Collection Game
- Continuing the Adventure Game
- Completing the Adventure Game
- Creating a 3D First Person Shooter (FPS)
- Continuing the FPS Game
- Creating AI with Sensors, Behavior Trees, and ML-Agents
- Entering Virtual Reality with the XR Interaction Toolkit
- Creating an AR Farming Sim with AR Foundation
- Commercial Viability with Unity Gaming Services - Completing the FPS Game
- Finishing Games with Balance, Play Testing (QA), and Platform Distribution