Creating an animated NPC in Unity using a character and animation clip
Once you have a rigged character model and an animation clip, you are ready to add an animated NPC character to a Unity project. For this recipe, we’ll create a new Unity project and import a character and animation clip, then add an Animator Controller asset that will allow Unity to animate the character in a scene.
Figure 9.25: Our animated NPC character
Getting ready
For this recipe, you can use your own FBX animation clips and 3D characters, or use the ones from previous recipes in this chapter.
We have provided the character (GIRL_unity.fbx
) and animation clip (@Breathing Idle.fbx
) from the previous two recipes for you to use in the 09_08
folder.
How to do it...
To create an animated NPC in Unity using a character and animation clip, perform the following steps:
- Create a new 3D Unity project.
- Import your character model FBX into the Project panel’...