Hi,
i use Javascript with the 2.0 Api and i try to switch the animation collection (anim lib) with:
playerAnimation.Library = Resources.Load("Test", typeof(tk2dSpriteAnimation)) as tk2dSpriteAnimation;
playerAnimation.Play("Test");
but Unity got stuck everytime, no error in the Log.
playerAnimation called:
static var playerAnimation : tk2dSpriteAnimator;
and on Start function:
playerAnimation = GetComponent(tk2dSpriteAnimator);
and of course i've got animation collection called Test with clip called Test inside.
what am i doing wrong?
thanks,
Edo