- Home /
Question by
seyitbaba590 · Jul 09, 2020 at 12:01 PM ·
c#animationprefabscripting beginnerspawn
spawning a prefab that have animation
when i instantiate a prefab with an animation all objects spawning at same position but if i remove animation they spawn like i want how can i fix it?
Comment
Answer by TomArano_Dimenco · Jul 09, 2020 at 12:30 PM
remove all transform.position keyframes in your animation or make it so it doesn't animate globally but uses an empty game object making the animation local to the empty game object.
Your answer
![](https://koobas.hobune.stream/wayback/20220613002822im_/https://answers.unity.com/themes/thub/images/avi.jpg)