in the inspector of my animation component, i have an big array full of animations. but i don’t see a way in the scripting reference to access them. but i need to check them for their length when they play. if i could access them by name it would really help my script.
is there a way to do that?
clunk47
2
using UnityEngine;
using System.Collections;
public class AnimationExample : MonoBehaviour
{
void Start()
{
print (animation["Walk"].length);
}
}