Hi, I’ve imported a an FBX object which has several animations. In the inspector, it displays all the animations as a list as expected, however I’m looking to code a general solution so that I can iterate through each animation once the last has completed - so I don’t want to reference them by name, rather by index (as I’ll be repeating this process for several scenes). So, I’m trying to access the array the anims are listed in. So, rather than say:
referenceToAnimation.Play ("Animation1");
…I’d play it by saying
referenceToAnimation.Play ( animation[0] );
…but I’m struggling to actually access the animation array through code. Can anyone assist?
Thanks