Access Animations array in Animation component

In the animation component, there is the default Animation, and also an Animations array. How do you access a particular animation in this array, for play at an arbitrary time during run time?

The obvious animation.animations[index] does not work.

the array you’re accessing in your example is the animation state- so it’s still useful for your purposes, just not in the way you were using it.

try something like:

animation.CrossFade(animation.animations[index].name);