大约有 67 项符合查询结果, 库内数据总量为 30,583 项。 (搜索耗时: 0.0021 秒)
... ```typescript //3d场景加载 Scene3D.load("res/TerrainScene/XunLongShi.ls",Handler.create(null,function(scene:Scene3D):void { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标...
来源: Laya2.0_文档 发布时间: 20210715
...了。 ```typescript Laya.Scene3D.load('LayaScene_scene/Conventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)
来源: Laya2.0_文档 发布时间: 20210715
...了。 ```typescript Laya.Scene3D.load('LayaScene_scene/Conventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)
来源: Laya2.0_文档 发布时间: 20210715
...中我们介绍了模型包括了模型网格与材质两部分,加载.ls、.lh数据时,会自动加载模型所对应的材质。 这时可以使用导出后产生的.lmat材质文件,加载创建标准材质并赋给模型,方式与模型加载类似。 ```typescript //材质加载 BaseMa...
来源: Laya2.0_文档 发布时间: 20210715
...果了。 ```typescript Scene3D.load('LayaScene_scene/Conventional/scene.ls',Handler.create(this,function(scene:Scene3D):void{ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)
来源: Laya2.0_文档 发布时间: 20210715
...场景 Laya.Scene3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)
来源: Laya2.0_文档 发布时间: 20210715
...场景 Laya.Scene3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)
来源: Laya2.0_文档 发布时间: 20210715
...的场景 Scene3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Handler.create(this,function(s:Scene3D):void{ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)
来源: Laya2.0_文档 发布时间: 20210714
...sePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Android/"; else if (Laya.Browser.onIOS) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/IOS/"; else Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Conventional/"; Laya.Scene3D.load("sc...
来源: Laya2.0_文档 发布时间: 20210714
...sePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Android/"; else if (Laya.Browser.onIOS) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/IOS/"; else Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Conventional/"; Laya.Scene3D.load("sc...
来源: Laya2.0_文档 发布时间: 20210715