2D Toolkit Forum

2D Toolkit => Support => Topic started by: gregp on January 10, 2014, 01:40:10 pm

Title: Atlasing
Post by: gregp on January 10, 2014, 01:40:10 pm
Hi,
I'm considering buying TK2D, and I'm just wondering how the atlasing works.
For instance, if I generate my atlas in TexturePacker, can TK2D import that? Or do I just throw my normal sprites into my project and TK2D takes care of atlasing them?
Title: Re: Atlasing
Post by: unikronsoftware on January 10, 2014, 03:47:31 pm
tk2d can't import TexturePacker atlases (it can import them at runtime, but you lose all fancy editor features in tk2d).
You create sprite collections (one or more atlases) in tk2d using the workflow shown in the link:
http://2dtoolkit.com/docs/latest/tutorial/creating_a_sprite_collection.html
Title: Re: Atlasing
Post by: gregp on January 10, 2014, 04:43:41 pm
Thanks for the helpful reply. If 2DTK is generating my atlas for me, will Unity ignore my original textures when I build for release? I don't want Unity to package in all my original textures as well as the 2DTK generated atlas texture.
Title: Re: Atlasing
Post by: unikronsoftware on January 10, 2014, 06:23:59 pm
Yes, there will be no reference to the original textures unless you add them yourself for example by putting it into a resources directory.
Title: Re: Atlasing
Post by: gregp on January 11, 2014, 12:24:25 pm
Ok, thanks! I bought it and it's working great so far!  :)