Hello Guest

Author Topic: Force Build atlases at Build Time  (Read 3895 times)

beneuji

  • Newbie
  • *
  • Posts: 21
    • View Profile
Force Build atlases at Build Time
« on: November 19, 2014, 01:20:20 pm »
Hello there !

I'd like to know if there's a function to force build all atlases in te project(we'd use it when building the app).
I'm no programer, if you could point me to where my programer should look, that would be awesome. (i searched the forum, but couldn't find anything relevant)

Thanks,
ben

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Force Build atlases at Build Time
« Reply #1 on: November 19, 2014, 01:42:46 pm »
Hi,

There isn't, and you probably shouldn't do that on 32 bit Unity, you're likely to run out of memory if you build everything one after another...
But if you want to do it, you can get a list of all sprite collections in the tk2dIndex, and then for each of them, tk2dSpriteCollectionBuilder.Rebuild(spriteCollection);