Hi all:
I want to change the sprite collection and get a clip in runtime.
I have search in the forum and there are some similar questions but i couldn't make my script work.
I have this:
private var tkScript : tk2dSpriteAnimator;
private var data : tk2dSpriteAnimation;
function Start () {
tkScript = gameObject.GetComponentInChildren (tk2dSpriteAnimator);
data= Resources.Load("TestChar", typeof(tk2dSpriteAnimation)) as tk2dSpriteAnimation;
tkScript.Library = data;
tkScript.Play("Test");
If i try with tk2dSpriteCollectionData i can pick sprites from my resources and it works, but when i try this to pick a clip its says Library not set on play windows in Unity