2D Toolkit Forum
2D Toolkit => Support => Topic started by: JFBillingsley on August 10, 2013, 03:18:38 am
-
Suppose I have 45 sprite collections. Suppose also that I'd like to change the texture compression on all those sprite collections. Suppose, in addition, that I would not like to have to click a sprite collection, click "Open Editor", change the texture compression, and click "commit" 45 times. Suppose I've done this three times already and I've had about enough of it ;)
FWIW I'm still using 1.92 because of reasons so maybe this is something that's been added in a newer version, but for my sanity, is there any way to make this easier? I looked into trying to script this in the editor but there doesn't seem to be a simple "Commit" method of sprite collections or anything like that.
-
Go into Debug Mode in the inspector, then you can change the compression for all selected sprite collections at once with the 'texture compression' drop-down without going into the sprite editor.
Debug mode is in the menu at the top right next to the lock icon.
edit: that probably won't commit the changes to the atlases themsevles, but you can just multi-select them and change them all at once as well.
-
I tried that before, but the problem is that it doesn't actually commit the change, so I still have to go into each collection in the editor and commit it manually.
-
As my ninja edit said, you just have to change the atlas texture compression don't you? Which you can do with multi-select.
-
I did THAT too ;) but then any changes to the sprite collection changes the atlas texture's settings back to whatever's specified in the sprite collection, unless I change it so it's "user defined."
Of course changing them all to "user defined" requires opening them all one by one and AAAAAAAAH
-
The first step should stop that happening since it changes the collection setting itself, and any subsequent 'Commits' update the atlas with the new setting. It works here but then I am not using 1.92 ... ;)
Did you try 'save project' or restarting Unity after changing the collections in Debug mode? Or Rebuild Index?
-
....oh, that's true :Va I didn't think of doing both, haha.
Well I'll keep that in mind then! And hopefully I can update to 2.10 on the next project :P Thanks!
-
Yup, changing both will do the job :D