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

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

1. 微信小游戏报错 the .lh file root type must be Scene [ 100%]

微信小游戏报错 the .lh file root type must be Scene 引擎版本1.7.17beta private screen3DPath: string = "res/layaScene/xiangsuqiche.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.s...

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

2. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 99%]

...小游戏中加载unity导出的场景报错the .lh file root type must be Scene 报错:the .lh file root type must be Scene。 看了下代码,是读取的.ls文件并不是按照数组方式读取的,而是安装字符串读取进来的,所以导致判断type失败:       /**    ...

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

3. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 97%]

微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene 引擎使用的是1.7.17beta版本,下面是报错堆栈,附件是工程项目以及导出的小游戏项目。 Scene: the .lh file root type must be Scene,please use other function to  load  this fil...

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

4. 用微信小游戏测试,载入一个3D的角色.lh报错了,LayaAir的本地测试OK [ 92%]

....lh报错了,LayaAir的本地测试OK WAGame.js:3 gameThirdScriptError Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to load this file. ...

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

5. unity导出的ls和lh文件发布到微信小程序,用微信开发者工具打开报错 [ 88%]

...序之后,在微信开发者工具(v1.02.1802080)里报错,错误为"Scene: the .lh file root type must be Scene,please use other function to load this file."或"Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file." 跟了一下,发现__proto.onAsynLoa...

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

6. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 84%]

...,代码如下:// 程序入口 class LayaAir3D { /*3D场景*/ private scene:Laya.Scene; /*3D角色*/ private role:Laya.Sprite3D; /*3D摄像机*/ public camera:Laya.Camera; constructor() { //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 ...

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

7. 请教3D插件设置,导出的ls加载失败 [ 78%]

...型, 2018-04-16 0 1 分享 微博 QZONE 微信 w1114367261 赞同来自: scene是可以使用的 scene导出的是所有unity中的精灵,你检查一下你unity的场景中是否加了什么laya不支持的东西 2018-04-17 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

8. 用1.01导出的场景加载失败 [ 77%]

...te3D,please use other function to load this file.     我的代码  var scene = Laya.Sprite3D.load("unity/LayaScene_1/1.lh");     SceneManager.Instance().AddChild(scene);   2017-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

9. Laya小程序加载ls失败 [ 72%]

...同样的问题,ls文件在小程序模拟器里加载失败,错误:Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error。经过调试发现code.js中__proto.onAsynLoaded 方法里面var json=data[0]有问题...

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

10. 找不到文件路径 [ 63%]

...on 文件,或者文件读取失败,请检查后重新编译。 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 真机环境找不到window---cant find variable: window stack 小游戏项目 加载有中文的json文件 报错 LayaNative ios...

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