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

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

261. 物理Bodies绑定Laya.Sprite [ 52%]

...ite, 不能用render.sprite render: { visible: true, // 开启渲染 } }); console.log("增加刚体..."); World.add(world, gun); 点击运行之后,屏幕都是黑色,不显示图片信息。这个感觉是有问题,还请官方来回答,非常感谢!! 2018-05-22 添加评论 免费帖 ...

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

262. 发布微信后无法触发mouse_up事件 [ 52%]

...ouches.length;i++){ let t =touches[i]; let nameIndex =e.touchId + "_" + i; console.log(nameIndex+":"+e.type); } } } 之能收到down和move! 2018-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 Luren_yi ...

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

263. js继承模式 [ 52%]

...(this); // this定义.. this.init(); } Class.prototype.init = function() { console.log(this); }; return Class; })(); } var __extends = (this && this.__extends) || function(d, b) { for (var p in b) { (b.hasOwnProperty(p)) && (d[p] = b[p]); } function __() { this.constructor = d; } d.p...

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

264. 粒子会不会有内存泄漏? [ 52%]

...); sp.emitter.start(); sp.x = 100; sp.y = 100; sp.name = (i++).toString(); console.log(sp.name); Laya.stage.addChild(sp); setTimeout(function () { var emitter = sp.emitter; emitter.stop(); emitter.clear(); sp.stop(); sp.destroy(true); Laya.stage.removeChild(sp); onAssetsLoaded(settings); }, 100); } ...

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

265. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 51%]

... this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01-17 添加评论 免费帖 --> 分享 微博 Q...

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

266. 调用创建微信授权按钮时,授权按钮有时候显示有时候不显示 [ 51%]

...                 {                     console.log("授权失败");                 }             });             button.show(); 2019-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

267. 多场景跳转遇到当前场景不能remove的问题 [ 51%]

... 2018-08-17 10:44 for( let i = 0; i < Laya.stage.numChildren; i++ ) { console.log( Laya.stage.getChild(i) ); } 153*****476 • 2018-08-17 13:17 多谢,按你的方法我找到问题了,是我的逻辑有问题,场景加载了两次。 Supermang42 • 2018-08-17 13:33 :D

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

268. (附件demo)qq小游戏发布之后启动报错,在开发工具模拟器里面运行正常 [ 51%]

...Main.js里面加了,在手机上没有运行到这里。 constructor() { console.log("Main start....");   附件qq_layaSample是用2.4IDE创建一个一个3d物理实例工程,导出qq平台后在开发工具里面压根运行不起来,但是在 Ver 0.1.29-beta.55  里面可以运行。  ...

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

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

...g'); //此处无论是这样给 list.on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 txArray.push(list);} storeTxList.array = txArray;   Laya.stage.addChild(storeTxList);     悬赏找大神看问题 export default class StoreIte...

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

270. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 51%]

...; this._path_space_y = Math.abs( this._tail_pos.y - this._head_pos.y ); // console.log("set path head_pos:" + this._head_pos.x + ":" + this._head_pos.y); // console.log("set path tail_pos:" + this._tail_pos.x + ":" + this._tail_pos.y); // console.log("set path space:" + this._path_space_x + ":" + th...

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