engine
engine copied to clipboard
`SpriteRenderer` should not tamper with the `material` when setting the `mask`
const material = spriteRenderer.getMaterial();
spriteRenderer.maskInteraction = SpriteMaskInteraction.VisibleInsideMask;
console.log(spriteRenderer.getMaterial() === material);
Expected to return true
After the 2D pipeline is reconstructed, this part of the judgment should be moved to the pipeline part.