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

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

51. Node类中getChildByName没有null容错 [ 91%]

Node类中getChildByName没有null容错 laya.core Node类,这里的this._childs可能为null。 这里希望框架做一下容错! 附件 : --> 2017-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixu...

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

52. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 91%]

...载后stage.destroyChildren()出现异常Cannot read property 'visible' of null   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityPlugin 1.1.0导出了 ls 场景文件,在通...

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

53. Error: Layer value can be null. [ 90%]

Error: Layer value can be null. 一开始正常后来把 Laya.stage.addChild(Gamesce.gameFig); 改为Laya.stage.addChildAt(Gamesce.gameFig,1); 报这个错误,再改为Laya.stage.addChild(Gamesce.gameFig); 游戏一直报Error: Layer value can be null.,游戏崩了。。。。。 有大神知...

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

54. 程序可以运行,但是过一段时间会出现Uncaught TypeError: Cannot read property 'font' of null错误,如何修改代码 [ 90%]

...过一段时间会出现Uncaught TypeError: Cannot read property 'font' of null错误,如何修改代码 附件 : --> 2017-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 wudi199553 赞同来自: 能发一...

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

55. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null[ 90%]

...ate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” 发射时生成子弹: onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponen...

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

56. 使用as3开发时候添加事件.on会报错。Uncaught TypeError: Cannot read property 'on' of null [ 90%]

...加事件.on会报错。Uncaught TypeError: Cannot read property 'on' of null  是2.0的使用方式有什么变化了么?我是按照官方的视频教程一步步写的。还有一个dialog页面,即便不添加到舞台上,运行的时候它也会自动出现在舞台上,但另外一个v...

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

57. 发布WEB报错 unable to get property '_addReference' of undefined or null reference [ 90%]

发布WEB报错 unable to get property '_addReference' of undefined or null reference 调试 正常 发布后 会显示这个报错 附件 : --> laya3DDemo2.rar 2019-07-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...

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

58. laya2.9版本,脚本如何正确添加,现在报错“on”of null [ 90%]

laya2.9版本,脚本如何正确添加,现在报错“on”of null 如图截图给研发商,一个新项目,建了一个场景,用了2d物理 ,不添加脚本可以运行,添加了脚本之后就提示这个。 这个on是绑定点击事件的。 附件 : --> demo.zip 2020-12-30 添...

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

59. 当屏幕尺寸,缩放模式,横竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null [ 90%]

...生改变时会报错Uncaught TypeError: Cannot read property 'length' of null 2017-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 182*****369 赞同来自: cuixueying 已解决,当destroy函数调用时会...

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

60. 打包apk之后,突然报一个错误, Cannot read property 'createTexture' of null。明明没有加载图片,为啥执行到了这里。 [ 90%]

...k之后,突然报一个错误, Cannot read property 'createTexture' of null。明明没有加载图片,为啥执行到了这里。 附件 : --> 2018-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Mr....

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