Hello,
Is there anyway to set the wrap mode of an animation in mechanim (specifically to clamp).
This was incredibly easy to in the legacy system (which I would still be using if the animation importer was still working…) how do I achieve this with mechanim? Basically, I have one state (swimming) which plays until I set a bool and get the animation to “attack”, at which point I want it to clamp at the end of that state.
Thanks
It should just be a matter of changing the import options for the animation - either by selecting the AnimationClip and turning off ‘Loop Time’ in the inspector directly, or (if it’s been imported from the FBX file) by going to the Animation tab for the FBX file and turning off Loop Time for the appropriate clip there.
I think it was probably due to how I was setting up the animation controller, as I had loop time turned off already as you suggested. Anyway, I managed to change the animation files back to legacy and use them like that. The script took me all of 3 minutes to write… I guess I’ll have to sit down and bash through some mechanim tutorials soon, but most of my projects are really animation light, but I need tight control over the few that there are, so it’s just not a good fit right now.
Thanks for the help 