Sprite batching possibilities

Hello, i’m wondering if there is possible to batch multiple sprites to render them as one draw call?
I have:

  1. multiple sprites but based on the same texture atlas
  2. sprites move independently
  3. same sprites are static, other onces are animated sprites/clips (but still use the same texture atlas)
  4. blend modes, shaders are the same of course


I think sprite batching is disabled in the editor, but there is a way to use it anyway.

Create batch groups in the scene settings:

And in your code:

var HOOKS_BATCH_GROUP = 100000;
hook.findByName("Sprite").sprite.batchGroupId = HOOKS_BATCH_GROUP;