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

大约有 699 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)

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

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

122. 背景音乐文件太大 播放延迟 [ 77%]

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

123. 自定义shader-简单shader [ 77%]

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

124. 从fbx转成lh文件后,加载报错 [ 77%]

...件后,用以下方式加载报错;fbxyua原文件已上传附件; scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/test/food05/food05.lh")));   附件 : --> food05.zip 2017-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

125. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 77%]

...修改自身材质: ...... //添加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

126. laya默认模型的阴影没有渲染 [ 77%]

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

127. UNITY导出的模型旋转不了 [ 77%]

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

128. 用1.01导出的场景加载失败 [ 76%]

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

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

...,代码如下:// 程序入口 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

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

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

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