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

大约有 360 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0059 秒)

11. laya3d物体碰撞与触发检测的问题 [ 95%]

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

12. 3D模型怎么删除?没回切换页面原来的模型都还在? [ 94%]

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

13. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 94%]

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

14. unity导出的场景不显示实时阴影 [ 94%]

...示不出来,这是为何?   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

15. 关于平行光渲染投影问题,求解惑 [ 94%]

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

16. 3D的点光源或者聚光灯的光源会穿透模型 [ 94%]

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

17. 3D阴影无法渲染出来 [ 94%]

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

18. 求助高手请进,关于场景导入的问题~ [ 93%]

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

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

...启统计信息 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

20. 如何实现3d遮罩效果? [ 93%]

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