Question by
N7D · Feb 24, 2017 at 09:46 AM ·
animationprefabprefab-instanceliftdifferent objects
Should I make completely new animation and animator for every new lift I will create?
So I have a prefab of lift that has animation to move 6 meters up and then go down, and I want to have exactly the same lift, but moving only 4 meters up.
But animation is changing to both of the lifts. So the question is - Should I make completely new animation and animator for every new lift I will create?
Comment
Answer by hexagonius · Feb 24, 2017 at 10:17 AM
that's not very flexible, is it? I would do this programmatically, using two transforms in the scene to describe the two positions it's moving between. the way it moves is probably simple to code ( linear, quadratic...). this way you can go any direction or even along several points.
Your answer
![](https://koobas.hobune.stream/wayback/20220612111729im_/https://answers.unity.com/themes/thub/images/avi.jpg)