- Home /
How to add a fixedUpdate() in a clampforever animation??
Well, I've got an animation, but I want to call a fixed function to move my object only when it reaches the end. I set the animation to Wrapmode.clampforever, but why the function is called only once??
In the future, refrain from posting your question multiple times.
yes, i'm really sorry, but the connection to unityanswers failed three times, and I posted the question three times, sorry about that
PS Do you $$anonymous$$now how to delete a question??
Answer by demize2010 · Jun 24, 2011 at 10:36 PM
The function will be called the animation frame is loaded. Clamp does not continually replay the last frame but leaves the model in a fixed state from my understanding.
Consider using a boolean to initiate a state change (and hence have you code called either every frame from Update() or every physics frame from FixedUpdate()) or use a co-routine to achieve what you want. http://unity3d.com/support/documentation/ScriptReference/Coroutine.html
Your answer
Follow this Question
Related Questions
How to add a fixedUpdate() in the animationwiew using an animation in wrapmode.ClampForever?? 0 Answers
How to call a fixedUpdate() in a clampforever animation?? 0 Answers
Moving Player only during part of an animation 1 Answer
Animation not working correctly on moving object 1 Answer
RTS movement with walking animation. 1 Answer