- Home /
2dToolkit - Changing Sprite During Runtime
Hello,
Maybe someone can help me.
I am working on a project and have a sprite that I need to (based on a configuration file) change when the program boots up. So my config files has the name of a tk2SpriteCollectionData and the name of the sprite I need.
I've looked through 2dtoolkit's documentation and I see the SwitchCollectionAndSprite but it requires a tk2SpriteCollectionData.
My question is how do I get a reference to the tk2SpriteCollectionData in code?
Answer by Fattie · Mar 12, 2013 at 04:08 PM
it is (relatively speaking !) very easy to do this,
and is often discussed at great length on the very active 2dtk forum
http://unikronsoftware.com/2dtoolkit/forum/index.php?board=5.0
suggest you just go there, or even very simply email the TK help desk. they are extremely generous with email support and will probably just immediately give you the link you need, cheers
Your answer
![](https://koobas.hobune.stream/wayback/20220613094256im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Problem with complex UI systems 0 Answers
Different builds for different screens in apple store iOS 1 Answer
How to get rid of black lines on the sides of the font texture using 2DToolkit and BMFont? 1 Answer
DOTween, tk2dTextMesh and float 0 Answers
Monodevelop - Code completion and 3rd party scripts 0 Answers