Hello Guest

Author Topic: Dynamic Sprite Collection Generation  (Read 3056 times)

insanetheta

  • Newbie
  • *
  • Posts: 1
    • View Profile
Dynamic Sprite Collection Generation
« on: June 24, 2014, 02:17:49 am »
Hi All,

I am wondering if anyone has a method to generate a sprite collection from an editor script OR at runtime, besides the create from texture method?
Essentially I want to be able to provide an array of textures and receive a sprite collection / sprite collection data.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Dynamic Sprite Collection Generation
« Reply #1 on: June 24, 2014, 04:19:12 pm »
There is no supported method to create atlases at runtime. You do have the source code to 2D Toolkit, if you fancy implementing it yourself...

However, tk2d can load atlases created elsewhere, eg. texture packer, at runtime. Check the runtime sprite collections sample for more details.