- Home /
whole animation not being played
I have the animation done through Maya and brought the FBX file to unity. Here is my code to calculate the speed of the swipe:
Vector2 speedMeasuredInScreenWidthsPerSecond =(Input.touches[0].deltaPosition / Screen.width) * Input.touches[0].deltaTime;
Now I wanted to take speedMeasuredInScreenWidthsPerSecond and use it to increase the animation speed accordingly like this:
animation["gmeChaAnimMiddle"].speed=Mathf.Round(speedMeasuredInScreenWidthsPerSecond.magnitude); animation.Play("gmeChaAnimMiddle");
but now the problem seems only the last frames of the animation is being played not the whole animation
Your answer
![](https://koobas.hobune.stream/wayback/20220613141909im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Create Circular Motion to follow the object 2 Answers
Unity 3d app make my andorid phone heat 1 Answer
colliders with touch 0 Answers
Show activity indicator in center of screen 0 Answers
ASDAsdASDasdqweqw3edqwdQWDEqwedQWD 3 Answers