In case you haven't included a sufficient number of props to your character when modeling and animating it, you might want to give her the chance of collecting new ones at runtime. In this recipe, we will learn how to instantiate a GameObject and assign it to a character, respecting the animation hierarchy.
For this recipe, we have prepared a Unity Package named
Props, containing a basic scene that features an animated character and a prefab named badge. The package can be found inside the
To add a rigid prop at runtime to an animated character, follow these steps:
PropsUnity Package. Then, from the Project view, open the ...