[]iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。
this.guideContainer = new Sprite();
this.guideContainer.cacheAs = "bitmap";
Utils.GuideLayer.addChild(this.guideContainer);
this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep);
this.mouseEnabled = false;
var maskArea: Laya.Sprite = new Laya.Sprite();
maskArea.alpha = 0.5;
maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
maskArea.name = "maskArea";
this.guideContainer.addChild(maskArea);
this.interactionArea = new Laya.Sprite();
this.interactionArea.blendMode = "destination-out";
this.guideContainer.addChild(this.interactionArea);
this.guideHitArea = new Laya.HitArea();
this.guideHitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
this.guideContainer.hitArea = this.guideHitArea;
this.guideContainer.mouseEnabled = true;
this.tipContainer = new Laya.Sprite();
Utils.GuideLayer.addChild(this.tipContainer);
this.interactionArea.graphics.clear();
this.interactionArea.graphics.drawCircle(pos.x+target.width*scale*0.5, pos.y+target.height*scale*0.5, step.radius * scale, "#000000");
this.guideContainer.cacheAs = "bitmap";
Utils.GuideLayer.addChild(this.guideContainer);
this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep);
this.mouseEnabled = false;
var maskArea: Laya.Sprite = new Laya.Sprite();
maskArea.alpha = 0.5;
maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
maskArea.name = "maskArea";
this.guideContainer.addChild(maskArea);
this.interactionArea = new Laya.Sprite();
this.interactionArea.blendMode = "destination-out";
this.guideContainer.addChild(this.interactionArea);
this.guideHitArea = new Laya.HitArea();
this.guideHitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
this.guideContainer.hitArea = this.guideHitArea;
this.guideContainer.mouseEnabled = true;
this.tipContainer = new Laya.Sprite();
Utils.GuideLayer.addChild(this.tipContainer);
this.interactionArea.graphics.clear();
this.interactionArea.graphics.drawCircle(pos.x+target.width*scale*0.5, pos.y+target.height*scale*0.5, step.radius * scale, "#000000");
没有找到相关结果
已邀请:
要回复问题请先登录
4 个回复
Aar0n
赞同来自: zd1fr5g55 、Barry Allen
kimiMaro
赞同来自: leesson
annimor
赞同来自:
avpvsdoom
赞同来自: