2D Toolkit Forum

2D Toolkit => Support => Topic started by: avinash on July 01, 2014, 07:28:35 am

Title: How to EDIT Static Sprite Batcher programatically?
Post by: avinash 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.
Title: Re: How to EDIT Static Sprite Batcher programatically?
Post by: unikronsoftware 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.