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

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

261. 如何获取动画的长度? [ 68%]

...载完回调还是获取不到   tl.loadAnimation("s.ani", Laya.Handler.create(this, () => { var bounds = tl.getGraphicBounds(); console.log(bounds.width) }, [tl]));   还是0 2018-01-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

262. Panel初始化BUG [ 68%]

...;         content._style.scrollRect || (content.scrollRect = Rectangle.create());         content._style.scrollRect.setTo(rectX, rectY, width, height);         content.scrollRect = content.scrollRect;     } 附件 : --> Bug文本.zip 2021-11-08 添加评论 免费帖 --> 分享 微博 ...

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

263. 滤镜-模糊滤镜 [ 67%]

...LL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this...

来源: Laya2.0_示例 发布时间: 20251218

264. List选中项下滚会变 [ 67%]

... = true;//列表项是否可选 // this.sList.selectHandler = Laya.Handler.create(this,this.onSelect,null,false); this.sList.mouseHandler = new Laya.Handler(this,this.onMouse);//鼠标事件响应 } Laya.class(ServerListView,"ServerListView",_super); var _proto_ = ServerListView.prototype; //选择...

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

265. graphics绘制报错 [ 67%]

...const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawTriangles( tex, 100, 0, new Float32Array([0,0,1,0,1,1,0,1]), new Float32Array([0,0,1,0,1,1,0,1...

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

266. LayaBox编译器BUG [ 67%]

... 对于匿名函数的编译 this不会被替换为_$this  举例 Handler.create(this,function(){this.name="test"});     这个函数里边的this不会被替换为_$this 2017-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

267. [LayaNative3]new CommondBuffer 没有回收释放,每次用完,直接给置成null,每次buffermemory都会增长,不会下降 [ 67%]

...anceBufferState.destroy(); this._instanceBufferState = null;但是在下次Create的时候因为是从池子中拿出来的,所以 this._instanceBufferState 没有了 附件 : --> 归档.zip 2025-07-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

268. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 67%]

... 这里的按钮,可以用   this.btn.clickHandler = laya.utils.Handler.create(this,this.方法,["你要传的参数"],false); 2018-08-28 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Try everything___ 相关问题 发起问题须知...

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

269. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 67%]

...源版本控制 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { cell.setIm...

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

270. 请问UI之间的场景切换要怎么写 [ 67%]

...Mode = "horizontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool.recover("sg_sign",Laya.sg_sign)...

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