[]代码和ide编辑器添加遮罩浏览器警告

请问下这段代码有什么问题?
let s: Laya.Sprite = new Laya.Sprite();
s.graphics.drawRect(10, 10, 580, 470, "#000000");
s.pos(0,0);
console.log("=mask container=>>", s.width, s.height)//打印出是0,0
this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,chrorme就会警告cache bitmap size larger than 2048,cache ignored
已邀请:

Laya_XS

赞同来自:

你遮罩的容器宽高超过了2048,这是一个警告。缓存被忽略了。

ljy328803417

赞同来自:

Sprite要手动设置高宽width=?, height=?

要回复问题请先

商务合作
商务合作