In some of our games we use custom material chunks on sprites, image and text elements and it work fine but with animated sprites it look like we’re limited to a single custom material.
From the source code
Since animated sprite fetch the default material on every frame change, the only way to have a custom material on then seems to be to overwrite the sprite component default material. (defaultMaterial / default9SlicedMaterialSlicedMode / default9SlicedMaterialTiledMode). This is fine with one custom material, but if we want to have, different animated sprites use different materials it will not work as each need to change the default one used by all animated sprite.
Ideally, we should be able to set the material for a single animated sprite like we can for images, text and normal sprite:
this.entity.element.material = ...
this.entity.element._text._setMaterial(...)
this.entity.sprite.material = ...