engine icon indicating copy to clipboard operation
engine copied to clipboard

`SpriteRenderer` should not tamper with the `material` when setting the `mask`

Open cptbtptpbcptdtptp opened this issue 1 year ago • 1 comments

const material = spriteRenderer.getMaterial();
spriteRenderer.maskInteraction = SpriteMaskInteraction.VisibleInsideMask;
console.log(spriteRenderer.getMaterial() === material);

Expected to return true

cptbtptpbcptdtptp avatar Oct 30 '23 03:10 cptbtptpbcptdtptp

After the 2D pipeline is reconstructed, this part of the judgment should be moved to the pipeline part.

cptbtptpbcptdtptp avatar Oct 30 '23 03:10 cptbtptpbcptdtptp