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

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

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

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

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

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

微信小游戏报错 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

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

微信小游戏运行导出项目的时候报错: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 [ 79%]

...aAir的本地测试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. 2018-01-15 添加...

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

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

...信开发者工具(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.onAsynLoaded这个function...

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

6. 导入微信小游戏的时候 [ 75%]

...小游戏的时候 WAGame.js:3 gameThirdScriptError Sprite3D: The .lh file root type must be Sprite3D,please use other function to  load  this file.;at api readFile success callback function Error: Sprite3D: The .lh file root type must be Sprite3D,please use other function to  load  this file. ...

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

7. Laya小程序加载ls失败 [ 63%]

...s文件在小程序模拟器里加载失败,错误: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]有问题,data本身是json...

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

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

用1.01导出的场景加载失败 提示 Sprite3D: the .lh file root type must be Sprite3D,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 添加评论 免费帖...

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

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

...de.js:21065 Object WAGame.js:3 gameThirdScriptError Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file.;at api readFile success callback function [b]Error: Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file. at Spr...

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

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

...themum • 2018-04-17 16:30 报错的信息是"Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file.",说明要求的是加载一个.lh文件,但是用Scene导出的却是一个.ls文件 w1114367261 • 2018-04-17 16:47 我刚看到你怎么能...

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