- Home /
Fade animation in
In my game, the direction from an arm is always the x-axis from the camera. Then, I've created a weapon change animation. So, the problem is, when the arm looks down and I play the animation, it "warps" to the target position. Is there a way to fade from the position, set in a script, to the position from an animation?
I'd think you'd have to animate it...
http://unity3d.com/support/documentation/ScriptReference/Animation.CrossFade.html
$$anonymous$$ight help more... But I'm assu$$anonymous$$g you're doing that already... I'm sure their is a way to do it, someone else probably knows, good luck!
Post you answer as an answer ins$$anonymous$$d of a comment :) Chances are unknown (google) was using animation.Play ins$$anonymous$$d of animation.CrossFade.
Lol... Almost every example on playing an animation is with the cross fade XD, especially for character animations lol. Just assumed he'd use that... Thought it might have been a glitch of some sorts...
Of course I used CrossFade ;) But it does only work if I try to fade from animation to animation but not from script to animation :/
Answer by Justin Warner · Mar 29, 2011 at 01:21 PM
I'd think you'd have to animate it... unity3d.com/support/documentation/ScriptReference/ Might help more... But I'm assuming you're doing that already... I'm sure their is a way to do it, someone else probably knows, good luck!
Copy pasta because Statement said so.
Your answer
Follow this Question
Related Questions
Easy fade in/out on level load/end? 2 Answers
Weapon customize system 1 Answer
Using multiple buttons in script 3 Answers
Strange issue changing the animation state 0 Answers
Quick change over time math 2 Answers