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

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

231. 释放资源报错 [ 68%]

...rite3D.__proto.destroy (laya.d3.js:43737)   发现           if (this._cacheRootBone){             this._cacheRootBone.transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._boundChange); 这里的this._cacheRootBone非空,但是上面transform是...

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

232. laya2.12的input在安卓不起作用还报错 [ 68%]

...用来做测试的功能,不着急解决的let input = new Laya.Input() this.changeIDBtn.displayObject.addChild(input) input.y = -200; input.x = -200; input.text = 2000 + "" 附件 : --> 2021-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

233. 官方的示例贴上来,怎么没反映啊 [ 67%]

...反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler)...

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

234. 发微信小游戏音乐不播放,报警告 [ 67%]

...的是   Laya.SoundManager.playSound("res/sounds/bgm.mp3", 1, new Handler(this, function(){                 console.log("播放完成");             })); 2018-08-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

235. 2.13版本 2D物理碰撞OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 [ 67%]

...碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错   new this.box2d   box2d 是undefined 请问这里的 this 指向是 ??   contact.getHitInfo = function () {                 var manifold = new this.box2d.b2WorldManifold();                 this.GetWorldManifold(ma...

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

236. 微信加载proto文件 [ 67%]

微信加载proto文件 在Laya里用this.protobuf.load 可以正常加载,但是导出成微信小游戏就无法加载了。报错无效的URL,求解 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回...

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

237. wx.canvasToTempFilePath在TS下如何使用啊? [ 67%]

...ShareAppMessage() console.log(res.tempFilePath) } }) 一直报错[ts] The 'this' context of type 'typeof wx' is not assignable to method's 'this' of type 'string'. canvasId也是我乱写的 如果才能正确获取小游戏当前画布的canvasId啊? 2018-11-28 添加评论 免费帖 --> 分享 ...

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

238. IOS真机下监听MOUSE_MOVE事件会报错 [ 67%]

...VE事件会报错 var test = new Laya.Image('img/icon/face.png'); test.x = this.width / 2; test.y = this.height / 2; this.addChild(test); test.on(Laya.Event.MOUSE_MOVE, this, (e) => { console.log(e); }); 监听mouse_move事件后,手指在test上滑动,会报错:   附件 : --> 2017-08-06 ...

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

239. js飞机大战报错 请大神看看 [ 67%]

...ll.js文件 里面的组件名正确  layaUI.max.all.js:          this.pauseBtn=null;          this.hpLabel=null;          this.levelLabel=null;          this.scoreLabel=null;          this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) {   ...

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

240. 在layabox里protobuf只能用回调的方式处理吗? [ 67%]

...,白鹭里加载我使用的是: import ProtoBuf = dcodeIO.ProtoBuf; this._protoBuilderMap ={user:ProtoBuf.loadProto(RES.getRes('user_proto'))}; 然后打包数据这样使用就可以了: let head: string = name.substring(0, name.indexOf('.')); let Message = this._protoBuilderMap[head].build(...

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