[]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");
clipboard_2017-12-22_14-20.png
已邀请:

Aar0n

赞同来自: zd1fr5g55 Barry Allen

GuideLayer. scrollcet = new Rectangle(0,0,屏幕宽(舞台宽高也可以),屏幕高) 限制一下试试,有问题再及时反馈

kimiMaro

赞同来自: leesson

已经9102年了 laya还没有解决这个问题,是因为公司快黄了吗?

annimor

赞同来自:

这样解决表不了问题,pc端有的浏览器会有缩放功能,stage宽和高很容易超过2048,然后就会有异常。

要回复问题请先

商务合作
商务合作