2D Toolkit Forum
2D Toolkit => Support => Topic started by: jrhee on February 01, 2014, 08:26:02 am
-
Hello,
Couple quick questions regarding static batching and Unity 4.3's sorting layers:
1) Is there any way to preserve the sorting layer when using the static batcher? It seems whenever a static batch is committed, the sorting layer of the underlying sprites is reset to the default.
2) Is there any way Order in Layer can be used with a static batch?
If neither of the above are possible, is there a recommended approach to ensuring correct sort order for static batched sprites?
Thanks!
-
No, this is intentionally left out because once a model is merged into a static batch it can't then interact with Unity sprites. A static batch gets merged into one mesh, and only one sorting layer / order in layer can be assigned. i.e. they won't sort with other things outside the batch as they would before committing.
-
Makes sense, thanks for the quick reply :)