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

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

1. 场景创建时,每次都是新建一个场景然后添加到Laya.Scene.root节点下,能否检测一遍,root节点下有同一个场景的,直接调整层级显示。 [ 100%]

场景创建时,每次都是新建一个场景然后添加到Laya.Scene.root节点下,能否检测一遍,root节点下有同一个场景的,直接调整层级显示。 目前Laya.Scene.open方法每次都会创建一个新的场景然后添加到sceneroot节点下,发现在使用中有...

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

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

微信小游戏报错 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. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 93%]

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

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

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

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

5. 继承Scene没有onEnable [ 89%]

继承Scene没有onEnable 以下3个代码块 1.继承Node 执行后会有onAwake         let t = new tt();         Laya.Scene.root.addChild(t);     } } //激活启动类 new Main();  class tt extends Laya.Node{     constructor(){         super();     }     ...

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

6. 脚本未定义 [ 88%]

...ONE 微信 xiaolang 赞同来自: demo,请自行改变下脚本路径。 SceneScriptTest.rar 2018-12-25 0 0 分享 微博 QZONE 微信 xiaolang 赞同来自: layaair 2.0 2018-12-25 0 0 分享 微博 QZONE 微信 皇冠VIP 赞同来自: 谁能教一下   2019-06-17 0 0 分享 微博 QZONE 微信 ...

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

7. list 下 生成图片模糊 [ 86%]

...ghter' 图片异常 matter中layasprite怎么改变图片大小? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 Texture图片能否进行翻转? 粒子系统官例里载入的那些json文件是用什么软件生成的? 关于发布oppo...

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

8. 场景节点如何获取,类似cocos的cc.find [ 85%]

LayaAir引擎 场景节点如何获取,类似cocos的cc.find 场景scene内有多层子节点。在子节点a中,想调用scene的方法。 总不能a.parent.parent.parent一直找吧。 cocos有cc.find("canvas/"),直接从场景的根节点开始找 2019-03-13 添加评论 免费帖 --> 分...

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

9. 新版本场景加载问题 [ 80%]

...1.7.7  ,加载没问题, 现在用最新的之后,会报错  var scene=Laya.Scene.load("3333.ls"); var root=Laya.stage.addChild(scene);       var camera = root.addChild(new Laya.Camera(0, 0.2,200));     之前版本可以直接加载,用最新的版本之后 会报  laya.d3.js:114...

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

10. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 79%]

...,内存中场景及引用其的对象无法销毁         this.scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         this.cam...

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