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

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

31. 2.0按钮添加事件报错 cannot read property 'on' fof undefined [ 82%]

2.0按钮添加事件报错 cannot read property 'on' fof undefined class GameLogin extends ui.login.login_bgUI { constructor() { super(); this.btn_register.on("click", this, this.ToRegisterPage); } ToRegisterPage() : void { this.loadScene("login/register_page"); } }   //调用on的时候 直接...

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

32. BUG:添加RigidBody组件会使anchorX、anchorY失效 [ 82%]

...加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 问题状态 最新活动: 2020-02-17 15:25 浏览: 2245 关注: 2 人 dz5566 • 2020-02-17 18:15 let sp = new Laya.Image(); sp.skin = "comp/tab.png" let body = new Laya.RigidBody(); body.gravityScale = 0; ...

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

33. 分享一个自己做的游戏公告功能,跑马灯效果 [ 81%]

...x -= 2 } } /** 添加节点 */ addItem(html:string) { if (typeof html === "undefined") {return } this.html.appendHTML(`${this.space}${html}`) if (this.isPlayIng === false) { this.play() this.isPlayIng = true } } /** 开始动画 */ play() { if (this.isPlayIng === true) { return } const _w = this.htm...

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

34. socket大型项目回调 [ 81%]

...eof(route) == "string")) { route = Routedic.getName(route); } if (route == undefined){ route = ''; } var bodyarray = Protobuf.decode(route, buffer);//此处后期需要完善 var body:any if(bodyarray){ body = bodyarray; }else{ var bodystr = Protocol.strdecode(new Laya.Byte(buffer.getUint8Array(buff...

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

35. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 80%]

...ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined 代码: var Test = (function(_surper){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught TypeError:...

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

36. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 80%]

...景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined ios14系统下 blendMode='lighter' 图片异常 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 unity到导出场景加载时抛异常,不知所措 关于场...

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

37. 获取动态更新的文本内容 [ 80%]

...ull, Laya.Loader.TEXT,0,false,null,true); 读取值的时候,显示的是undefined 2017-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 你所说的实时加载文本内容是不是得和...

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

38. 关于HttpRequest报错问题 [ 80%]

...景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 【带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined TypeScript下HttpRequest发送Post请求有Bug? graphics alpha 问题 关于逻辑贞更新间隔机制、时间和其他一...

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

39. Clip组件Bug:Play方法无法结束循环 [ 80%]

...加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 3D模型无法修改scale? FD 宏编译时 出现 试图访问该方法时失败 问题状态 最新活动: 2020-12-11 10:44 浏览: 1810 关注: 1 人

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

40. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 80%]

...kaka • 2017-12-13 16:49 Uncaught TypeError: Cannot read property 'on' of undefined提示的是这个错误,不是事件绑定的问题,是获取this.getGold为undefined,想知道这个怎么用 Laya_Aaron • 2017-12-13 17:01 你这个问题 所提供的截图 内容太少,多贴代码 或...

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