how to play all FBX's separated Animation Elements?

my character has more than 50 separated animation via FBX file import, (char@walk.fbx, char@run.fbx, char@crouch.fbx,…etc)
not the standard import (all animation in one FBX file).

also, let’s say it has 4 different mesh/costume.

is there a way to play all the animation elements without having to write down all 50 animation’s name in a script?
I want to preview/check all 4 meshes skin before continue with the project.

or should I bear with manually play all the 50 animation x 4 mesh?
any help would be great :smile:

Each “element” is stored as an AnimationState on the character, so you can iterate through all of the animations to, for example populate an array of take names and then play them back in sequence.

public string[] takeNames;
public GameObject character;

foreach (AnimationState state in character.animation)
{
 // etc
}

Hope that helps.