Animating specific frames of a 3d model

i have a model for some arms, my modeler saved some time and annoyance by compacting all the animations into one continuous one, and telling me which frame were responsible for which animations

so essentially, is there some way to, say, call an animation to play from frames 32 to 60 after pressing the G key, hold the model, then animate frames 60 to 90 after pressing it again? hell i don’t even need full code or anything, just a pointer as to what functions might be handy

ah
on further research it seems unity doesn’t use frames for animations, but rather times during the animation clip

however this works just as well

but the question still remains, if somewhat altered, how do i have an animation run from, say, time 1.333 to 1.777?

you set the time on the animation clip to 1.333, add an animation event which fires a function that stops the animation to 1.7777 and play it.

alternatively: you go to the model importer, add a new animation sequence and specify the frames you want to play in that animation and just use it happily :wink: (much easier and you see visually what you setup and can easy remember and change it)

oo, interesting, i was not aware this was possible
and calling animations by name probably saves a lot of annoyance with timing as well
thanks bro, i will EXPERIMENT

I imported fbx with animations, then manually added animation ranges in the import dialog
(see in the link, those idle, run etc… press that + button, set ranges…)

Then with script can play those anims:
animation.Play(“walk”);

i don’t have that luxury as i do not believe the model is an fbx
sadfaces everywhere

OH WAIT
wow i am retarded
i just had to click open on the model section within the inspector pane for the model
and BLAMMO! fbx importer, with animation frames!