Hands-On Unity 2022 Game Development: Learn to use the latest Unity 2022 features to create your first video game in the simplest way possible, 3rd Edition
- Length: 712 pages
- Edition: 3
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2022-10-31
- ISBN-10: 1803236914
- ISBN-13: 9781803236919
- Sales Rank: #154625 (See Top 100 Books)
Create, customize, and optimize your own professional games from scratch with Unity 2022
Includes invitation to join the online Unity Game Development community to read the book alongside Unity developers/C# programmers and Nicolas Borromeo.
Purchase of the print or Kindle book includes a free eBook in the PDF format.
Key Features
- Create the game prototype and learn the fundamentals of Unity editor to build scenes, objects and import objects
- Add interactivity, win/lose conditions, sound, graphics and artificial intelligence using C# and visual scripting
- Improve the game graphics, user interface, add visual effects and animations using Animator, Cinemachine, and Timeline
Book Description
Unity is a cross-platform game engine that provides you with powerful but simple-to-use features to solve the most common problems in Game Development, such as rendering, animation, physics, sound, and effects. You’ll learn to use these features to create simple but complete games (and all the nuances needed to handle Unity).
Complete with hands-on tutorials and projects, this book will teach you to use the Unity game engine, create C# and visual scripts, integrate graphics, sound, and animations, and manipulate physics to create interesting mechanics for your game. You’ll then code a simple AI agent to challenge the user and work with profiling tools to ensure code efficiency.
Finally, you’ll work with Unity’s AR tools to create AR experiences for 3D apps and games before publishing them to the world.
If you are interested in creating impressive, commercial-quality games that are playable on a variety of platforms, then you’ve come to the right place.
What you will learn
- Build a game prototype that includes gameplay, player and non-player characters, assets, animations, and more
- Set up and navigate the game engine to dive into the Unity Editor and discover unique and new features released in 2022
- Learn both C# and Visual Scripting to customize player movements, the user interface, and game physics
- Apply shaders to improve your game graphics using Shader Graph and Universal Render Pipeline (URP)
- Create win-lose conditions for the game by using design patterns such as Singleton and Event Listeners
- Implement Game AI to build a fully functional enemy capable of detecting and attacking the player
- Debug, test, optimize, and create an executable version of the game to share with your friends
Who this book is for
Both game and non-game developers who wish to migrate or start building 3D games in Unity will find this book useful. While you’ll still able to follow along if you don’t have any programming experience, knowing the fundamentals of C# programming will help you get the most out of this book.
Preface Who this book is for What this book covers To get the most out of this book Get in touch Share your thoughts Creating a Unity Project Installing Unity Unity’s technical requirements Unity versioning Installing Unity with Unity Hub Creating projects Creating a project Project structure Summary Editing Scenes and Game Objects Manipulating scenes The purpose of a scene The Scene View Adding our first GameObject to the scene Navigating the Scene View Manipulating GameObjects GameObjects and components Understanding components Manipulating components Object Hierarchies Parenting of objects Possible uses Prefabs Creating Prefabs Prefab-instance relationship Prefab variants Saving scenes and projects Summary Grayboxing with Terrain and ProBuilder Defining our game concept Creating a landscape with Terrain Discussing Height Maps Creating and configuring Height Maps Authoring Height Maps Adding Height Map details Creating shapes with ProBuilder Installing ProBuilder Creating a shape Manipulating the mesh Adding details Summary Importing and Integrating Assets Importing assets Importing assets from the internet Importing assets from the Asset Store Importing assets from Unity Packages Integrating assets Integrating terrain textures Integrating meshes Integrating textures Configuring assets Configuring meshes Configuring textures Assembling the scene Summary Introduction to C# and Visual Scripting Creating scripts Initial setup Creating a C# script Adding fields Creating a Visual Script Using events and instructions Events and instructions in C# Events and instructions in Visual Scripting Using fields in instructions Common beginner C# script errors Summary Implementing Movement and Spawning Implementing movement Moving objects through Transform Using Input Understanding Delta Time Implementing spawning Spawning objects Timing actions Destroying objects Using the new Input System Installing the new Input System Creating Input Mappings Using Mappings in our scripts Summary Physics Collisions and Health System Configuring physics Setting shapes Physics object types Filtering collisions Detecting collisions Detecting Trigger events Modifying the other object Moving with physics Applying forces Tweaking physics Summary Win and Lose Conditions Creating object managers Sharing variables with the Singleton design pattern Sharing variables with Visual Scripting Creating managers Creating Game Modes Improving our code with events Summary Implementing Game AI for Building Enemies Gathering information with sensors Creating three-filter sensors with C# Creating Three-Filters sensors with Visual Scripting Debugging with gizmos Making decisions with FSMs Creating the FSM in C# Creating transitions Creating the FSM in Visual Scripting Executing FSM actions Calculating our scene’s NavMesh Using Pathfinding Adding the final details Summary Materials and Effects with URP and Shader Graph Introducing shaders and URP Shader Pipeline Render Pipeline and URP URP built-in shaders Creating shaders with Shader Graph Creating our first Shader Graph Using Textures Combining Textures Applying transparency Creating Vertex Effects Summary Visual Effects with Particle Systems and Visual Effect Graph Introduction to Shuriken particle systems Creating a basic particle system with Shuriken Using advanced modules Creating fluid simulations Creating a waterfall effect Creating a bonfire effect Creating complex simulations with Visual Effect Graph Installing Visual Effect Graph Creating and analyzing a Visual Effect Graph Creating a rain effect Scripting Visual Effects Summary Lighting Using the Universal Render Pipeline Applying lighting Discussing lighting methods Configuring ambient lighting with skyboxes Configuring lighting in URP Applying shadows Understanding shadow calculations Configuring performant shadows Optimizing lighting Understanding static lighting Baking lightmaps Applying static lighting to static objects Summary Full-Screen Effects with Post-Processing Using post-processing Setting up a profile Using basic effects Using advanced effects High Dynamic Range (HDR) and Depth Map Applying advanced effects Summary Sound and Music Integration Importing audio Audio types Configuring import settings Integrating and mixing audio Using 2D and 3D AudioSources Using an Audio Mixer Scripting audio feedback Summary User Interface Design Understanding the Canvas and RectTransform Creating a UI with the Canvas Positioning elements with RectTransform Canvas object types Integrating assets for the UI Creating UI controls Creating a responsive UI Adapting object positions Adapting object sizes Scripting the UI Showing information in the UI Programming the Pause menu Summary Creating a UI with the UI Toolkit Why learn UI Toolkit? Creating a UI with UI Toolkit Creating UI Documents Editing UI Documents Creating UI Stylesheets Making a responsive UI Dynamic positioning and sizing Dynamic scaling Using relative positions Summary Creating Animations with Animator, Cinemachine, and Timeline Using Skinning Animation with Animator Understanding skinning Importing skeletal animations Integration using Animation Controllers Using Avatar Masks Scripting animations Scripting player shooting animations Scripting movement animations Creating dynamic cameras with Cinemachine Creating camera behaviors Creating dolly tracks Creating cutscenes with Timeline Creating animation clips Sequencing our intro cutscene Summary Optimization with Profiler, Frame Debugger, and Memory Profiler Optimizing graphics Introduction to graphics engines Using Frame Debugger Using batching Other optimizations Optimizing processing Detecting CPU- and GPU-bound Using the CPU Usage Profiler General CPU optimization techniques Optimizing memory Memory allocation and the garbage collector Using the Memory Profiler Summary Generating and Debugging an Executable Building a project Debugging the build Debugging code Profiling performance Summary Augmented Reality in Unity Using AR Foundation Creating an AR Foundation project Using tracking features Building for mobile devices Building for Android Building for iOS Creating a simple AR game Spawning the player and enemies Coding the player and enemy behavior Summary Other Books You May Enjoy Index
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/PacktPublishing
2. In the Find a repository… box, search the book title: Hands-On Unity 2022 Game Development: Learn to use the latest Unity 2022 features to create your first video game in the simplest way possible, 3rd Edition
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.