Hello Guest

Author Topic: Atlasing  (Read 3644 times)

gregp

  • Newbie
  • *
  • Posts: 3
    • View Profile
Atlasing
« 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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Atlasing
« Reply #1 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

gregp

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Atlasing
« Reply #2 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Atlasing
« Reply #3 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.

gregp

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Atlasing
« Reply #4 on: January 11, 2014, 12:24:25 pm »
Ok, thanks! I bought it and it's working great so far!  :)