Packt+ | Advance your knowledge in tech (2024)

GO TO TOP

You're reading fromUnity 2022 by Example

Product typeBook

Published inJun 2024

PublisherPackt

ISBN-139781803234595

Pages596 pages

Edition1st Edition

Languages

Concepts

3D Game Development

Author (1):

Packt+ | Advance your knowledge in tech (2)Scott H. Cameron

Scott Cameron is an award-winning digital content creator and designer with over 25 years of experience in information technology, software development, and design while he specializes in Indie game development. He is a Unity certified expert programmer and currently works as a Senior Unity engineer at io house ltd. Additionally, he also provides quality assurance and student course support & mentorship for Unity, Phaser, and C++ game development curriculum at Zenva.

Read more

See other products by Scott H. Cameron

Table of Contents (23) Chapters

Preface

  • Who this book is for
  • What this book covers
  • To get the most out of this book
  • Download the example code files
  • Conventions used
  • Get in touch
  • Share Your Thoughts

1. Part 1: Introduction to Unity

    2. Chapter 1: Foundational Knowledge of Unity 2022

    • Technical requirements
    • Unity Hub – Choosing the 2D URP template
    • Getting to know the Unity Editor and installing packages
    • Introducing the GameObject – All about Transform and components
    • 2D sprites with Sprite Creator – Understanding the Sprite Renderer and draw ordering
    • Game Design Document (GDD) – Introducing the 2D collection game
    • Summary
    • Image sources

    3. Part 2: 2D Game Design

      4. Chapter 2: Creating a 2D Collection Game

      • Technical requirements
      • Creating a 2D, top-down game environment with Tilemap
      • Introduction to creating scripts in C# – IDE, SOLID principles, and design patterns
      • Coding a simple player controller with the new Input System
      • Summary

      5. Chapter 3: Completing the Collection Game

      • Technical requirements
      • Using CM to follow the Player and playtesting
      • Game mechanics and how to create with code (components)
      • Introduction to uGUI, the timer, counting, and winning
      • Summary

      6. Part 3: 2D Game Design Continued

        7. Chapter 4: Creating a 2D Adventure Game

        • Technical requirements
        • Extending the GDD – Introducing the 2D adventure game
        • Importing assets to use with Sprite Shape – A different kind of 2D environment builder
        • Level and environment design – Guiding the player
        • Moving platforms and triggers – Creating a dynamic interactable environment
        • Adding polish to our environment to immerse the player and optimizing
        • Summary

        8. Chapter 5: Continuing the Adventure Game

        • Technical requirements
        • Setting up the player character with PSD Importer
        • Using an Input Action Map
        • Moving the player with a player controller script
        • Animating the character with Mecanim
        • Summary

        9. Chapter 6: Introduction to Object Pooling in Unity 2022

        • Technical requirements
        • The object pooling pattern
        • A pooled player shooting model
        • Summary

        10. Chapter 7: Polishing the Player’s Actions and Enemy Behavior

        • Technical requirements
        • Polishing with Shader Graph and Trail Renderer
        • Enemy Prefabs and variants – Configuring with SOs
        • Implementing basic enemy behavior using an FSM
        • Summary

        11. Chapter 8: Extending the Adventure Game

        • Technical requirements
        • Health and inflicting damage
        • Updating the player and enemy to use health
        • Enemy wave spawner
        • Summary

        12. Chapter 9: Completing the Adventure Game

        • Technical requirements
        • Creating an event system in C# to tie things together loosely
        • Creating a quest system for a collecting keys mission
        • Solving the key puzzle and winning the game
        • Summary

        13. Part 4: 3D Game Design

          14. Chapter 10: Creating a 3D First Person Shooter (FPS)

          • Technical requirements
          • Designing for 3D while continuing the GDD
          • Greyboxing a 3D environment with ProBuilder and Prefabs
          • Creating an FPS player character with the Unity Starter Asset
          • Refactoring environment interactions to 3D API methods
          • Code reuse in practice – Adding premade components to the player
          • Summary

          15. Chapter 11: Continuing the FPS Game

          • Technical requirements
          • Decorating the 3D environment
          • Immersing the player using Polybrush and Decals
          • Lighting design – Probes, Decals, light baking, and performance
          • Summary

          16. Chapter 12: Enhancing the FPS Game with Audio

          • Technical requirements
          • Adding audio using the Audio Mixer
          • Building an immersive soundscape with music, SFX,and ambiance
          • Enhancing the audio experience with footsteps and reverb zones
          • Deeper SOLID refactoring
          • Summary

          17. Part 5: Enhancing and Finishing Games

            18. Chapter 13: Implementing AI with Sensors, Behavior Trees, and ML-Agents

            • Technical requirements
            • Refactoring the 2D enemy systems to 3D with NavMesh
            • Dynamic enemies with sensors and behavior trees
            • Introducing ML with ML-Agents
            • Summary

            19. Chapter 14: Entering Mixed Reality with the XR Interaction Toolkit

            • Technical requirements
            • Introduction to MR and development frameworks
            • Designing a boss room
            • Working with AR planes (AR Foundation)
            • Placing interactable objects in the world
            • Implementing the boss room mechanics
            • Summary

            20. Chapter 15: Finishing Games with Commercial Viability

            • Technical requirements
            • Introducing GaaS – UGS
            • Safeguarding your investment! Source code management with Unity Version Control
            • Engaging players with an in-game economy
            • Getting your game out there! Platform distribution
            • Implementing UGS and publishing
            • Summary
            • Final words!

            21. Index

            • Why subscribe?

            22. Other Books You May Enjoy

            • Packt is searching for authors like you
            • Share Your Thoughts
            • Download a free PDF copy of this book

            In Chapter 5, we imported and prepped artwork for use with additional 2D animation tooling, which is bringing the game to life. We also processed player input using an input action map – instead of reading device input directly – with the new Input System, and we made a PlayerController script to move the player.

            We dove deeper into Mecanim as we learned how to transition between animations and drive animation state changes from code.

            In this chapter, you will be introduced to object pooling while we use this optimization pattern for the player’s shooting mechanic, and we’ll accomplish that using Unity’s object pooling API. The object pooling software design will be based on a pooled player shooting model UML diagram.

            In this chapter, we’re going to cover the following main topics:

            • The object pooling pattern
            • A pooled player shooting model

            By the end of this chapter, you...

            Packt+ | Advance your knowledge in tech (3)The rest of the chapter is locked

            Unlock this book and the full library FREE for 7 days

            Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of

            Renews at $15.99/month. Cancel anytime

            Start free trial

            Previous Section

            Section 1 of 5

            Next Section

            Personalised recommendations for you

            Based on your interests and search pattern

            The Essential Guide to Creating Multiplayer Games with Godot 4.0Read moreThis Essential Guide to Creating Multiplayer Games with Godot 4.0 teaches you how to use the high-level network API with concrete use cases. You'll learn the fundamentals of multiplayer games and advanced techniques to improve players' experience.Read moreDec 202310 hours 52 minutes
            Creating an RTS Game in Unity 2023Read moreA practical guide packed with essential concepts and techniques of game development, best coding practices for C# programming language, the most used design patterns to build high-quality projects, and techniques on implementing gameplay features to develop an RTS game using UnityRead moreOct 202318 hours 16 minutes
            Unity CookbookRead moreUnlock the limitless potential of Unity 2023 game development with this new edition. Dive into over 140 expertly crafted recipes that empower you to pioneer VR and AR experiences, conquer mobile game development, and master audio techniques, all while building a strong foundation in Unity's latest tools and features. Elevate your skills, captivate your audience, and craft your gaming masterpiece with this essential resource.Read moreNov 202326 hours 0 minutes
            Enhancing Virtual Reality Experiences with Unity 2022Read moreEnhancing Virtual Reality Experiences with Unity 2022 guides you through the latest features of Unity. Starting with the basics of understanding virtual reality, you'll systematically build the technical skills for building VR experiences in Unity, and finally implement everything you've learned in real-world projects.Read moreNov 202318 hours 52 minutes
            Photorealistic Materials and Textures in Blender CyclesRead moreThis comprehensive, beginner-friendly, AI-assisted, step-by-step guide is carefully tailored to guide you through the journey of progressing from a beginner to an expert artist. The book helps you to master materials, procedural textures, lighting, and rendering in Blender's powerful Cycles render engine.Read moreOct 202313 hours 8 minutes
            XR Development with UnityRead moreThis practical guide helps you create immersive VR, AR, and MR experiences using Unity 2021.3 or later versions. You’ll learn to add physics, animations, teleportation, sound, effects, and hand-tracking to XR scenes and deploy them on VR headsets, simulators, and mobile devices—all that you need to create interactive XR projects in Unity is here.Read moreNov 20239 hours 28 minutes
            Unreal Engine 5 - The Intermediate CourseRead moreElevate your game design journey with "Unreal Engine 5: The Intermediate Course." Dive into detailed studies of Materials and Textures, Landscapes and Open Worlds, Skeletal Meshes and Animations, and advanced Blueprint techniques. Transform your basic knowledge into professional-level expertise in Unreal Engine 5.Read moreDec 202318 hours 55 minutes
            Learn Unity Game Development - Build Six Games with Unity 2023Read moreGet ready to dive into the exciting world of Unity game development and C# scripting! With a hands-on approach, you will craft a variety of thrilling 2D and 3D games using Unity and C#. Uncover the art of building and exporting games to the Android mobile platform. This course is tailor-made for someone who wants to learn Unity and C# through real-world projects.Read moreSep 202312 hours 3 minutes
            Learn Intermediate C# Scripting for Unity Game DevelopmentRead morePrepare to immerse yourself in the thrilling realm of Unity game development and C# scripting! If you have already acquired the fundamentals of C# scripting with Unity and are eager to elevate your skills to the next tier, then you have found the ideal Intermediate C# Scripting Course. This course is custom-crafted for individuals seeking to master Unity and C# by working on practical, real-world projects.Read moreOct 20238 hours 6 minutes
            Low Poly Modeling for Absolute BeginnersRead moreImmerse yourself in the mesmerizing realm of low poly modeling with Blender! Unleash your boundless creativity as you sculpt stunning 3D designs. Master Blender’s tools to create captivating low poly trees, rocks, and more. Elevate your artistry with powerful modifiers and bring your unique vision to life in the world of 3D.Read moreAug 202314 hours 37 minutes
            Packt+ | Advance your knowledge in tech (2024)

            References

            Top Articles
            2024 fantasy football rankings: Who are the best NFL tight ends to draft?
            Superflex Fantasy Football 2QB Draft Rankings (2024)
            Gilbert Public Schools Infinite Campus
            Ksat Doppler Radar
            Dr. Hannah Straight Website
            A Man Called Otto Showtimes Near Fort Collins
            Fone Tech Cleveland Ms
            Al Horford House Brookline
            Fbsm Berkeley
            Busted Newspaper Birmingham Al
            Who Owns Po Box 17316 Salt Lake City Utah
            Understanding British Money: What's a Quid? A Shilling?
            Leccion 4 Lesson Test
            What retirement account is tax-free?
            Who is Ariana Grande? Everything You Need to Know
            All classes in Pathfinder: Wrath of the Righteous
            8 Casablanca Restaurants You’ll Want to Fly For | Will Fly for Food
            Nyu Paralegal Program
            Karen Canelon Only
            Watch The Lovely Bones Online Free 123Movies
            Fortnite Chapter 5: All you need to know!
            Master Series Snap On Tool Box
            Starlight River Multiplayer
            Monkey Werx Sitrep 2022
            Lonesome Valley Barber
            Vip Market Vetsource
            Metro By T Mobile Sign In
            The Civil Rights Movement Crossword Review Answer Key
            Wall Street Journal Currency Exchange Rates Historical
            3Kh0 1V1 Lol
            Best Places To Eat In Winter Park Fl
            William Sokol National Security Advisor Resigns
            How To Delete Jackd Account
            Snowy Hydro Truck Jobs in All Sydney NSW - Sep 2024 | SEEK
            Gofish Dating
            KOBALT K15CS-06AC MANUAL Pdf Download
            Secondary Math 2 Module 3 Answers
            Lactobacillus reuteri : présentation, bienfaits et avis sur ce probiotique
            Tampa Catholic Calendar
            Rubmd.com.louisville
            Pokeclicker Pikablu
            1984 Argo JM16 GTP for sale by owner - Holland, MI - craigslist
            Skip Da Games.com
            Road Techs
            Investeerder Parry bijt bij Vitesse van zich af: 'Mensen willen mij beschadigen'
            Craigs List Outdoor Furniture
            Pirates Bay Knaben
            Craigslist Nokomis Fl
            Mets vs. Reds: Injury Report, Updates & Probable Starters – Sept. 7 - Bleacher Nation
            Potion To Reset Attributes Conan
            Cb2 South Coast Plaza
            Latest Posts
            Article information

            Author: Dong Thiel

            Last Updated:

            Views: 5637

            Rating: 4.9 / 5 (79 voted)

            Reviews: 94% of readers found this page helpful

            Author information

            Name: Dong Thiel

            Birthday: 2001-07-14

            Address: 2865 Kasha Unions, West Corrinne, AK 05708-1071

            Phone: +3512198379449

            Job: Design Planner

            Hobby: Graffiti, Foreign language learning, Gambling, Metalworking, Rowing, Sculling, Sewing

            Introduction: My name is Dong Thiel, I am a brainy, happy, tasty, lively, splendid, talented, cooperative person who loves writing and wants to share my knowledge and understanding with you.