- Home /
How to have one animation for multiple objects?
So I'm making multiple particles, made an animation for a prefab and dropped multiple instances of the prefab in my scene. The problem is, the animation element causes all of my prefabs to start from origin and follow the same path regardless of where I place them. How do I start the animation relative to the object's placement, instead of precisely the coordinates that I built the animation on? I have no scripts for this, just an animator element, but I feel like a script is needed to make it relative to each instance of the prefab. Thanks!
Answer by Trungdv · Nov 11, 2014 at 07:41 AM
You should create new blank object (called "container" for example), make the prefab become child of that "container" object, then move the container to position you want to put prefab instead of prefab itself.
Your answer
![](https://koobas.hobune.stream/wayback/20220613171210im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Animation only runs in prefab and scene, but not during runtime. 1 Answer
Animation constantly resetting? 0 Answers
Animator won't let me add transitions 1 Answer
Animator not playing onCollisionEnter. 3 Answers
2D Animation does not start 1 Answer