大约有 699 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)
Laya_社区(471) Laya2.0_文档(66) Laya3.0_api(43) Laya_示例(42) Laya3.0_文档(33) Laya2.0_api(29) laya_api(15)
....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
... this.store.isDemo = true; Laya.Scene.open("scene/Home.scene") }), new Laya.Handler(this, (value: number) => { this._page = this.page this.mask_value = valu...
来源: Laya_社区 发布时间: 20201102
...LE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; initShader(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1.5)); camera.addComponent(CameraMoveScript); var layaMonkey = scen...
来源: Laya_示例 发布时间: 20260815
...件后,用以下方式加载报错;fbxyua原文件已上传附件; scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/test/food05/food05.lh"))); 附件 : --> food05.zip 2017-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20170110
...修改自身材质: ...... //添加3D场景----------------------- this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new ...
来源: Laya_社区 发布时间: 20171109
...e.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 5, 0)); camera.transform.rotate(new Laya.Vector3(-3...
来源: Laya_社区 发布时间: 20180717
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); Laya.Scene3D.load('/1/res/SampleScene.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild(scene1); Laya.Sprite3D.load("/1/res/SampleScene.lh", Laya.Handler.create(null, function(sp) { //let obj = sp; l...
来源: Laya_社区 发布时间: 20200611
...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
...,代码如下:// 程序入口 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
...小游戏中加载unity导出的场景报错the .lh file root type must be Scene 报错:the .lh file root type must be Scene。 看了下代码,是读取的.ls文件并不是按照数组方式读取的,而是安装字符串读取进来的,所以导致判断type失败: /** ...
来源: Laya_社区 发布时间: 20180101