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

大约有 717 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0055 秒)

601. Laya List给子元素添加事件后,滚动事件被劫持了 [ 57%]

...t.itemRender = StoreItem;   storeTxList.name = 'storeTxList'; storeTxList.width = 610; storeTxList.pos(0, 0); storeTxList.repeatX = repeatX; storeTxList.repeatY = repeatY; //y轴个数 // 使用但隐藏滚动条 storeTxList.vScrollBarSkin = "store/c.png"; let scrollBar = storeTxList.getChildByName...

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

602. 在 tiledmap 插入一个精灵在上面 [ 57%]

...this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height),   Laya.Handler.create(this,this.loadedMap)); }   loadedMap(){   this.sp=new Laya.Sprite();   this.sp.graphics.drawRect(0,0,100,100,"#FF0000");   var mapLayer = this.tiledMap.getLayerByIndex(1);...

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

603. 缓动-逐字缓动 [ 57%]

...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 = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() ...

来源: Laya_示例 发布时间: 20260303

604. WebGL 绘制图形报错 [ 57%]

...w Sprite(); mask.graphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。   附件 : --> 2017-02-16 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

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

...是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 添加评论 免...

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

606. 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

607. 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

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

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

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

609. 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

610. 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