If you haven't included a sufficient number of props for your character when modeling and animating it, you might want to give her the chance to collect new ones at runtime. In this recipe, we will learn how to instantiate a GameObject and assign it to a character while respecting the animation hierarchy.
Adding rigid props to animated characters
Getting ready
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. There is also a Texture named texture_pickupBadge.png. The files can be found in the 09_06 folder.