Hello Guest

Poll

How to EDIT Static Sprite Batcher programatically?

Edit method inside tk2dStaticSpriteBatcher
0 (0%)
UnCommit
0 (0%)

Total Members Voted: 0

Author Topic: How to EDIT Static Sprite Batcher programatically?  (Read 3002 times)

avinash

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to EDIT Static Sprite Batcher programatically?
« on: July 01, 2014, 07:28:35 am »
Hi,

I know how to create Static Sprite Batcher programatically
http://www.unikronsoftware.com/2dtoolkit/doc/2.5/advanced/scripting_static_sprite_batcher.html

But i can't find any method to edit the batcher. I have already created static sprite batchers. There are around 20 in my scene with each having around 100 - 150 sprites. So it really difficult to manually go edit and commit.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: How to EDIT Static Sprite Batcher programatically?
« Reply #1 on: July 01, 2014, 10:16:07 am »
There is no edit / commit mode - it is all done in the editor script (tk2dStaticSpriteBatcherEditor) that isn't included in the build to keep the library size down. If you want to batch edit / commit all sprite collections, modify the editor script to add a Commit all / Edit all button, thats probably the best way to do it.