滤镜问题,有复现demo

/**
问题描述:鼠标按下 btn 时设置btn的滤镜,然后放开时将btn.fitlers = null,这时舞台绘画的消失了????
*/

Laya.stage.graphics.drawRect(200, 200, Laya.stage.width / 2, Laya.stage.height / 2, "#ffff00");

var btn:Sprite = new Sprite();
btn.size(200, 100);
btn.graphics.drawRect(0, 0, btn.width, btn.height, "#ff00ff");
Laya.stage.addChild(btn);
btn.on(Event.MOUSE_DOWN, this, function():void {
btn.filters = [new GlowFilter("#ff0f0f")];
} );
btn.on(Event.MOUSE_UP, this, function():void {
btn.filters = null;
} );
已邀请:

要回复问题请先

商务合作
商务合作