Unity 2018 Cookbook
Over 160 recipes to take your 2D and 3D game development to the next level, 3rd Edition
Matt Smith
- 794 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Unity 2018 Cookbook
Over 160 recipes to take your 2D and 3D game development to the next level, 3rd Edition
Matt Smith
About This Book
Develop quality game components and solve common gameplay problems with various game design patterns
Key Features
- Become proficient at traditional 2D and 3D game development
- Build amazing interactive interfaces with Unity's UI system
- Develop professional games with realistic animation and graphics, materials and cameras, and AI with Unity 2018
Book Description
With the help of the Unity 2018 Cookbook, you'll discover how to make the most of the UI system and understand how to animate both 2D and 3D characters and game scene objects using Unity's Mecanim animation toolsets.
Once you've got to grips with the basics, you will familiarize yourself with shaders and Shader Graphs, followed by understanding the animation features to enhance your skills in building fantastic games. In addition to this, you will discover AI and navigation techniques for nonplayer character control and later explore Unity 2018's newly added features to improve your 2D and 3D game development skills. This book provides many Unity C# gameplay scripting techniques.
By the end of this book, you'll have gained comprehensive knowledge in game development with Unity 2018.
What you will learn
- Get creative with Unity's shaders and learn to build your own shaders with the new Shader Graph tool
- Create a text and image character dialog with the free Fungus Unity plugin
- Explore new features integrated into Unity 2018, including TextMesh Pro and ProBuilder
- Master Unity audio, including ducking, reverbing, and matching pitch to animation speeds
- Work with the new Cinemachine and timeline to intelligently control camera movements
- Improve ambiance through the use of lights and effects, including reflection and light probes
- Create stylish user interfaces with the UI system, including power bars and clock displays
Who this book is for
Unity 2018 Cookbook is for you if you want to explore a wide range of Unity scripting and multimedia features and find ready-to-use solutions for many game features. This book also helps programmers explore multimedia features. It is assumed that you already know basics of Unity and have some programming knowledge of C#.
Frequently asked questions
Information
3D Animation
- Configuring a character's Avatar and idle animation
- Moving your character with root motion and Blend Trees
- Mixing animations with Layers and Masks
- Organizing States into Sub-State Machines
- Transforming the Character Controller via script
- Adding rigid props to animated characters
- Using Animation Events to throw an object
- Applying Ragdoll physics to a character
- Rotating the character's torso to aim a weapon
- Creating geometry with Probuilder
- Creating a game with the 3D Gamekit
- Importing third-party 3D models and animations from Mixamo
Introduction
The big picture
https://assetstore.unity.com/packages/3d/animations/melee-axe-pack-35320
https://www.mixamo.com/
Configuring a character's Avatar and idle animation
Getting ready
How to do it...
- Import the [email protected] and Swat@rifle_aiming_idle.fbx files into your project.
- Select the MsLaser@T-Pose model from the Project panel.
- In the Inspector, under MsLaser@T-Pose Import Settings, activate the Rig section. Change Animation Type to Humanoid. Then, leave Avatar Definition as Create From this Model. Now, click Apply to apply these settings. Finally, click on the Configure... button:
- The Inspector will show the newly created Avatar. Observe how Unity correctly mapped the bones of our character to its structure, assigning, for instance, the mixamoRig:LeftForeArm bone as the Avatar's Lower Arm. We could, of course, reassign bones if needed. For now, just click on the Done button to close the view:
- Now that we have our Avatar ready, l...