hey
so - i did what u wrote me to do (without the rendomize part) just to get the list of clips , i've add this code to my animated sprite and it looks like this -
var anim : tk2dSpriteAnimator;
anim = GetComponent(tk2dSpriteAnimator);
var ListOfClips:tk2dSpriteAnimationClip[] = anim.Library.clips;
function Update ()
{
print (ListOfClips);
}
then i attached the same animated sprite to the variable anim in the inspector but i keep getting this arrow -
"NullReferenceException: Object reference not set to an instance of an object "
what am i doing wrong??