大约有 715 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0047 秒)
Laya_社区(473) Laya2.0_文档(76) Laya3.0_api(43) Laya_示例(42) Laya3.0_文档(37) Laya2.0_api(29) laya_api(15)
...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; 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, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, fals...
来源: Laya_示例 发布时间: 20241124
...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; 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, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, fals...
来源: Laya_示例 发布时间: 20241124
...============== let temp:Laya.Sprite3D = Laya.Sprite3D.load("res/Coin/layaScene.lh") as Laya.Sprite3D; scene.addChild(temp); temp.on(Laya.Event.HIERARCHY_LOADED,this,()=> { this.model = Laya.MeshSprite3D.instantiate(temp,scene) as Laya.MeshSprite3D; if(index == 0) { this.model.tran...
来源: Laya_社区 发布时间: 20180827
...y(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/TerrainScene/XunLongShi.ls", clas: Laya.Scene, priority: 1 }, { url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/...
来源: Laya_示例 发布时间: 20241124
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()); var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0),...
来源: Laya_示例 发布时间: 20241124
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()); var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 0.6, 1.1)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), ...
来源: Laya_示例 发布时间: 20241124
...LE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; initShader(); var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/terrain/terrain.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); ...
来源: Laya_示例 发布时间: 20241124
getRes加载场景报错 Laya.loader.load("LayaScene_04_laya/04_laya.ls",Laya.Handler.create(this,this.on3DComplete)); 在load3D资源后分别用两种方法实例化场景报错 //1.实例化场景 that.scene = Laya.loader.getRes("LayaScene_04_laya/04_laya.ls") as Laya.Scene3D; Laya.stage.addC...
来源: Laya_社区 发布时间: 20190624
...ypescript setTexture(){ //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function (texture) { this.mat.albedoTexture = texture; })); //法线贴图 Laya.Texture2D.load('res/threeDi...
来源: Laya2.0_文档 发布时间: 20210715
....PBRStandardMaterial(); //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function(texture) { mat.albedoTexture = texture; })); //法线贴图 Laya.Texture2D.load('res/threeDimen/sc...
来源: Laya2.0_文档 发布时间: 20210714