大约有 25 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0025 秒)
...ript if (Laya.Browser.onAndroid) Laya.URL.basePath = "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_TextureGPUCompr...
来源: Laya2.0_文档 发布时间: 20210714
...ript if (Laya.Browser.onAndroid) Laya.URL.basePath = "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_TextureGPUCompr...
来源: Laya2.0_文档 发布时间: 20210715
... ```typescript if (Browser.onAndroid) URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Android/"; else if (Laya.Browser.onIOS) URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/IOS/"; else URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Con...
来源: Laya2.0_文档 发布时间: 20210714
...be。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube"); //添加组件(脚本) var _script = cub...
来源: Laya2.0_文档 发布时间: 20210715
...be。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) ...
来源: Laya2.0_文档 发布时间: 20210715
...给cube。 ```typescript //加载场景 Scene3D.load("res/threeDimen/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组...
来源: Laya2.0_文档 发布时间: 20210715
...加到场景上就能看到效果了。 ```typescript Laya.Scene3D.load('LayaScene_scene/Conventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` (图2)
来源: Laya2.0_文档 发布时间: 20210715
...加到场景上就能看到效果了。 ```typescript Laya.Scene3D.load('LayaScene_scene/Conventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` (图2)
来源: Laya2.0_文档 发布时间: 20210715
...,添加到场景上就能看到效果了。 ```typescript Scene3D.load('LayaScene_scene/Conventional/scene.ls',Handler.create(this,function(scene:Scene3D):void{ Laya.stage.addChild(scene); })); ``` (图2)
来源: Laya2.0_文档 发布时间: 20210715
...果。 ```typescript //加载我们导出的场景 Laya.Scene3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` (图6)
来源: Laya2.0_文档 发布时间: 20210715