I am working on a small simulator. There is a 3D character on the screen and it randomly plays an animation (I used
animation.PlayQueued(...) command inside a
Now I have added a slider (
GUI.VerticalSlider ) on screen. I want to change the speed of all playing animations of 3D character when change the value of slider.
I know to use
animation["animationNane"].speed=xx; but my problem is I have to pass the parameter of animation name that I want to change the speed . but actually I don't want to change the speed of specific animation clip. I want to change the speed of whatever the animation running in my 3d character. How can I change the speed of whatever animation is playing?