- Home /
Animating transform problem (object returns to inicial position on animation end)
I've made a transform animation so that the object performs the animation whenever I press Space. But when the animation ends, the object immediately return to the position it had before the animation. What's wrong? I've parented the object to an empty gameobject so I can move the object with the arrow keys and perform the animation movement at any position. The animation is performed with the parent gameobject (the child executes de exact same animation movement curve). But when the object finishes translating it immediately returns to its initial position (before the animation is called). As I want the animation to be executed immediately, I've set the "Idle" (empty default state) to have no exit time, and the transition time to be 0. Here's a picture of the animation curve and the "Jump->Idle" transition inspector. Any ideias? =(
Your answer
![](https://koobas.hobune.stream/wayback/20220613195401im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Animation Continue 0 Answers
Lipsync with phonem animations? 0 Answers
Animation Play On Bullet Shot 1 Answer
How dose Xml Sparrow Work? 1 Answer