1
Support / Re: Loading Collections and Platform Support.
« on: December 05, 2013, 10:27:06 pm »
Thanks, This works perfectly in our test project. I will let you know if I encounter any problems but it seems to work fine.
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.
// Load the sprite collection data
tk2dSpriteCollectionData data = tk2dSystem.LoadResourceByName<tk2dSpriteCollectionData>("dataName");
// Set the sprite with the loaded data.
_testSprite.SetSprite(data, "CardBack");
// Add a sprite component and then set the sprite
tk2dSprite testSprite1 = _testGameObject.AddComponent<tk2dSprite>();
testSprite1.SetSprite(data, "CardBack");