1
Support / Re: Create SpriteCollection and SpriteAnimation at Runtime
« on: January 01, 2013, 03:19:45 pm »
Thanks for replying. I'll make an asset bundle and have a try.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
bool tk2dGlobal.AddSpriteCollection("name in resource folder");
bool tk2dGlobal.AddSpriteAnimation("name in resource folder");//which will automatically add the needed collections
SpriteAnimationClip tk2dGlobal.GetAnimationClipInAnimationLibrary("clip name", "anim lib name");
SpriteCollection tk2dGlobal.GetSpriteCollection("name in resource folder");
GameObject tk2dGlobal.CreateSprite(clip);
bool tk2dGlobal.AddSpriteCollection("name in resource folder");
bool tk2dGlobal.AddSpriteAnimation("name in resource folder");//which will automatically add the needed collections
SpriteAnimationClip tk2dGlobal.GetAnimationClipInAnimationLibrary("clip name", "anim lib name");
SpriteCollection tk2dGlobal.GetSpriteCollection("name in resource folder");
GameObject tk2dGlobal.CreateSprite(clip);