Unity Prefabs Animation Play Seperatly
Hello,
I have a coin prefab with an animation attached to it. The Animation has specific x,y,z coordinates. When I drag another coin prefab in my scene and play the game, the second coin prefab moves to the animation coordinates. (just as the first one). How can I make the x and z positions to move seperatly in the animation without making 100+ animations for each coin? Thanks in advance.
Answer by Rostam24 · Sep 13, 2015 at 11:26 AM
I would create an empty gameobject, then add the coin as a child of this gameobject. Now you can animate the coin (specifying x,y,z), as well as move it (by moving the parent gameobject).
Your answer
![](https://koobas.hobune.stream/wayback/20220612033552im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Animation State Question 1 Answer
Animation Running Game 0 Answers
Idle , Move and Attack animations 0 Answers
Character Model floating off the ground when idle animation plays 0 Answers
hide/show an object with another 0 Answers