Hi everbody, i’m kinda of new to Unity and learning.
I’m trying to make an small FPS, and I want to make my character hide it’s weapon and pull the other weapon whenever i command him to change it.
For this, i have many small animation for pulling out a weapon. The logical thing would be to play this animation backwards to pull in a weapon and the play normally the animation where the player pulls the nwe weapon.
I’m using this succefuly to play an animation backwards, something like this:
Just a thought, I’ve never tried to play an animation backwards in unity, but if you duplicate the animation within unity you can call the two animations from separate names. You can do this by going into the prefab, finding the desired animation and simply cmd + D ( ctrl + D if windows ). Rename it.
There seems to be an bug in unity that won’t allow animations that are being played from PlayQueued from changing speed. I’ve done a couple of tests and it seems to not work at all.
Thanks gonna try this out >> i was trying to play my animation backward last night with just .speed = -1.0 and the animation didn’t work it just was frozen or stuck at the end part of the animation and didn’t play the rest of the animation > so im gonna try legend411’s idea > it must be a bug
Thanks legend ! now i got my animation playing backward finally. … but now i gotta fix this other animation that plays sideways… any ideas on how to fix it ? i tried reimporting with moving the pivot and it is the same … im using 3dsmax