大约有 360 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0059 秒)
...loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, fa...
来源: Laya_社区 发布时间: 20190314
... 2.新建了个场景添加到B页面 this.scene = new Laya.Scene(); this.addChild(this.scene); 3.新建模型,并且添加B页面的3D场景中 var map: Laya.Sprite3D = Laya.Sprite3D.load("cj/cj.lh"); this.scene.addChild(map); 4.切换页面 private playGame(): void { Laya.stage.removeChild(this...
来源: Laya_社区 发布时间: 20180411
...adFinish() { //初始化场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vector3(0.5, 0.5, 0.5); //初始化相机 var camera = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5));...
来源: Laya_社区 发布时间: 20191209
...示不出来,这是为何? let light: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight) as Laya.DirectionLight; light.transform.rotate(new Laya.Vector3(-120, 0, 0), false, false); light.shadow = true; light.shadowDistance = 150; light.shadowResolution = 2048; light.shadowPSSMCount...
来源: Laya_社区 发布时间: 20191030
...ya.Stage.SCREEN_NONE; let ape: Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(ape); ape.loadImage("../laya/assets/fish_bg.png"); //开启统计信息 Laya.Stat.show(); //添加3D场景 let scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照相机 let camera: La...
来源: Laya_社区 发布时间: 20180302
...t cube_2 = cube_.clone() as Laya.MeshSprite3D; scene_.addChild(cube_2); cube_2.transform.translate(new Laya.Vector3(0,0,-5)); scene_.addChild(spotLight_); scene_.addChild(camera_); scene_.addChild(cube_); ...
来源: Laya_社区 发布时间: 20200506
3D阴影无法渲染出来 //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight...
来源: Laya_社区 发布时间: 20170809
...:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls"); Laya.stage.addChild(scene); } 我现在的问题是,我创建一个继承Scene的类,在这个类里边我怎么去给自己设置场景资源? var scene1:GameScene = new GameScene(); Laya.stage.addChild(scene1); public clas...
来源: Laya_社区 发布时间: 20170825
...启统计信息 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(-30, 0, 0), true, fals...
来源: Laya_社区 发布时间: 20180717
...e = Stage.SCREEN_NONE; Stat.show(); loadUI(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var camera1:Camera = new Camera(0, 0.1, 100); scene.addChild(camera1); camera1.transform.translate(new Vector3(0, 0.8, 1.5)); camera1.transform.rotate(new Vector3(-30, 0, 0), true, false); came...
来源: Laya_社区 发布时间: 20170209