- Home /
Question by
goten000023 · Mar 10, 2015 at 09:10 PM ·
c#animationnoobcrossfade
how to crossfade a animation and then loop it
im trying to play my run animation While im pressing a button
the problem is that my animation starts with the gun already in the run position so im trying to crossfade it to make it smooth.
this leads to it crossfading the animation over and over again.
is there any way to fix this?
Comment
Best Answer
Answer by TheFloatingSheep · Mar 10, 2015 at 10:47 PM
Animation.CrossFade("name_of_animation", 0.3F, PlayMode = PlayMode.StopSameLayer);
//Was pretty self explanatory...
And, the loop is easier...
Animation.loop = true;