Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Change Sprite Collection
« previous
next »
Print
Pages: [
1
]
Author
Topic: Change Sprite Collection (Read 3947 times)
Dipanker
Newbie
Posts: 17
Change Sprite Collection
«
on:
October 15, 2013, 04:23:00 pm »
Hi
How can I change the Sprite Collection of particular sprite object if the current sprite is not found in the current collection at run time.
Thanks.
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
Re: Change Sprite Collection
«
Reply #1 on:
October 15, 2013, 10:14:20 pm »
You need a reference to a sprite collection, and then assign it using SetSprite(newCollection, "Name"); How you get the collection is up to you, you can have a reference to a tk2dSpriteCollectionData object, or load it using Resources.Load.
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Change Sprite Collection