• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 81 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0028 秒)

71. ios15遮罩引起的黑屏在1.x的版本上如何解决 [ 53%]

...LightArea.visible = false; //设置叠加模式 highLightArea.blendMode = "destination-out"; highLightArea.setName("highLightArea") mask.addChild(highLightArea); 附件 : --> 2022-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

来源: Laya_社区 发布时间: 20221010

72. 请问引擎中是否支持类似Flash中擦除效果 BlendMode.ERASE [ 53%]

...分享 微博 QZONE 微信 wyg3732630 赞同来自: webGl 下 blendMode = "destination-out";出现黑块的问题 需要怎么解决?   2017-12-22 0 1 分享 微博 QZONE 微信 Laya_XS 赞同来自: 你参考上面的地址,有个地方需要设置成cacheas为bitmap就可以了。 2017-12-23 ...

来源: Laya_社区 发布时间: 20170120

73. 关于环形进度条,进度不能重置问题 [ 53%]

... this.say.height/2, this.say.width/2, "#00ffff"); this.circle.blendMode = "destination-out"; } Laya.class(IndexView,"IndexView",_super); IndexView.prototype.loadProgress = function(){ this.box.addChild(this.circle); if(this.angle <= 360){ this.angle+=12; this.draw.graphics.drawPie(this.say.width/...

来源: Laya_社区 发布时间: 20170807

74. 阴影太浓怎么变淡?看到说directlight.ambientColor,但这ambientColor属性没有 [ 53%]

...,在真机上直接没了?求解答 运用Sprite的属性blendMode为"destination-out"时得到黑圈,与引擎示例中的效果不同,想知道为什么 问题状态 最新活动: 2018-03-20 18:39 浏览: 1102 关注: 3 人 uu4uu • 2018-03-20 17:55 我按你这么设置了,没用 天...

来源: Laya_社区 发布时间: 20180320

75. iphoneX 用微信打开游戏,,做新手引导 抠图有问题,,, [ 52%]

...rea = new Sprite(); //设置叠加模式 this.interactionArea.blendMode = "destination-out"; this.guideContainer.addChild(this.interactionArea); this.hitArea = new HitArea(); this.hitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, maskColor); this.guideContainer.hitArea = this.hitArea; ...

来源: Laya_社区 发布时间: 20180116

76. graphics如何实现橡皮擦效果 [ 51%]

...50, "#000"); circle.pos(50, 50); // 设置叠加模式 circle.blendMode = "destination-out"; box.addChild(circle);   实现了擦除red节点的内容擦除  但是无法在擦除后的位置重新绘图  因为被上面有circle的透明区域挡住    请问如何实现在擦出后的位置...

来源: Laya_社区 发布时间: 20170707

77. 这种进度条怎么实现? [ 51%]

...SIZE >> 1,-90,this.startY,'#ff0000') this.$circleSprite.blendMode = "destination-out" this.$circleSprite.pos(this.CIRCLE_WIDTH >> 1,this.CIRCLE_WIDTH >> 1) this.$circleSprite.graphics.clear() this.$circleSprite.graphics.drawCircle((this.DEF_SIZE - this.CIRCLE_WIDTH) >> 1, (th...

来源: Laya_社区 发布时间: 20180123

78. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 47%]

...(); guideContainer.addChild(interactionArea); interactionArea.blendMode = "destination-out"; var tipContainer = new Sprite(); stage.addChild(tipContainer); onClick(); function onClick() { var guide = guideSteps[step++]; interactionArea.graphics.clear(); interactionArea.graphics.drawCircle(guide.x, g...

来源: Laya_社区 发布时间: 20171031

79. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 47%]

...his.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 =...

来源: Laya_社区 发布时间: 20171222

80. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 44%]

...graphics.drawCircle(0, 0, 15, "#fff"); cir.pos(p.x, p.y); cir.blendMode = "destination-out"; _colorSpr.addChild(cir); _htmlCanvas = _colorSpr.drawToCanvas(_colorTex.width, _colorTex.height, _colorSpr.x, _colorSpr.y); _tex = new Texture(_htmlCanvas); /************调用该方法导致内存泄漏****...

来源: Laya_社区 发布时间: 20180302