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

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

601. Laya2.1.0的BUG!Texture类的getTexturePixels [ 57%]

...BUG!Texture类的getTexturePixels  var uv=null; if (x !=0 || y !=0 || width !=texw || height !=texh){ uv=uv.concat();我想知道,引擎这段报错代码是什么鬼? Texture类的getTexturePixels 定义:var uv=null; 然后:uv=uv.concat();  ????     附件 : --> 2019-07-05 添加评...

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

602. GlowFilter和TimeLine/Tween一起用的问题 [ 56%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);   Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER;   Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628";   Laya.loader.load(apePath, Handler...

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

603. 原生打包中,drawTriangles接口报错,以及scrollRect没效果 [ 56%]

...,表现良好,但打包成原生APP(安卓)时,scrollRect的x,y,width,height属性设置了有没产生任何效果。 2019-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 R. 赞同来自: 引擎库...

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

604. TiledMap加载报错 relativePath为空 [ 56%]

..."name":"\u5757\u5c42 2", "opacity":1, "type":"tilelayer", "visible":true, "width":25, "x":0, "y":0 }, { "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 206, 206,...

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

605. wx.canvasToTempFilePath在TS下如何使用啊? [ 56%]

...mpFilePath在TS下如何使用啊? wx.canvasToTempFilePath({ x: 0, y: 0, width: 100, height: 100, destWidth: 100, destHeight: 100, canvasId: 'myCanvas', success: function (res) { wxd.shareUrl = res.tempFilePath wxd.ShareAppMessage() console.log(res.tempFilePath) } }) 一直报错[ts] The 'this' co...

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

606. android下mask效果与layaair不一致 [ 56%]

...手机上表现效果就不一致了 skillMask.graphics.drawRect(0, 0, t.width, t.height, "#ffffff"); skillMask.x = 0; skillMask.y = 0; skill.mask = skillMask;   附件 : --> 2017-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

607. 如何实现渐变填充对象呀? [ 56%]

....graphics.drawRect(0, 0, 500, 350, "#ffffff") drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 参数fillColor:* — 填充颜色,或者填充绘图的渐变对象 我找不到关于这个渐变对象的文档,例子或者教...

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

608. 微信小游戏,截屏和开放域不能共存 [ 56%]

...是layaair2.1.0beta,截屏接口使用的是 drawToCanvas(this.basePanel.width, this.basePanel.height, this.basePanel.x, this.basePanel.y).toBase64("image/png", 0.9, function(base64) 请问这个怎么解决,谢谢啦 2019-06-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

609. list 加载动画为什么实现的效果会错乱掉? [ 56%]

...的边界信息 var bounds = ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya...

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

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

...prite(); 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.addCh...

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