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

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

51. 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

52. 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

53. 程序可以运行,但是过一段时间会出现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

54. 子弹添加了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

55. 使用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

56. 发布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

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

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

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

58. 当屏幕尺寸,缩放模式,横竖屏 发生改变时会报错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

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

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

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

60. VM6771:1 [GameOpenDataContext] Cannot assign to read only canvas. [ 89%]

...operty 'cursor' of undefined错误 Cannot read property 'displayObject' of null 构建出来的安卓项目权限要求READ_PHONE_STATE,有什么用能不能去掉。 Cannot read property 'offCanplay' of null Laya.timer.loop() 报错 Cannot read property 'loop' of null Uncaught TypeError: Cannot r...

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