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

大约有 3,861 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0085 秒)

361. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 87%]

...格渲染器获取模型上的材质 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere"); //获取球型精灵自带的BlinnP...

来源: Laya2.0_文档 发布时间: 20210715

362. laya.ui.View [ 87%]

... | Methods | Events Packagelaya.uiClasspublic class ViewInheritanceView Scene Sprite Node EventDispatcher ObjectSubclasses Dialog, MoreGame View 是一个视图类,2.0开始,更改继承至Scene类,相对于Scene,增加相对布局功能。 Public Properties Hide Inherited Public Properti...

来源: Laya2.0_api 发布时间: 20190513

363. 3D阴影无法渲染出来 [ 87%]

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

364. VR的demo有没有加载3D场景的啊,实在不知怎么加 [ 87%]

...a.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; Laya.Stat.show(); //var scene = Laya.stage.addChild(new Laya.Scene.load("cj02/LastHopeScene.ls")); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.VRCamera( 0.03,0, 0, 0.1, 100)); camera.transform.translate(ne...

来源: Laya_社区 发布时间: 20170707

365. ios微信clone特效会导致特效的mesh无法显示 [ 87%]

...ULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene3D = Laya.stage.addChild( new Laya.Scene3D() ) as Laya.Scene3D; var camera: Laya.Camera = scene.addChild( new Laya.Camera(0, 0.1, 100) ) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 4)); ...

来源: Laya_社区 发布时间: 20220721

366. Texture2D的GPU纹理压缩的使用(TypeScript-3D基础(TS)-LayaAir3D之纹理) [ 87%]

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

来源: Laya2.0_文档 发布时间: 20210714

367. Texture2D的GPU纹理压缩的使用(JavaScript-3D基础(JS)-LayaAir3D之纹理) [ 87%]

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

来源: Laya2.0_文档 发布时间: 20210715

368. 有关Laya3D碰撞检测疑问 [ 87%]

...L; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show();  var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene;  this._outHitAllInfo = new Array<Laya.RaycastHit>();  //初始化照相机 this.camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Ca...

来源: Laya_社区 发布时间: 20180820

369. 加载unity导出的场景显示模糊 [ 87%]

...预览,右边laya运行         代码就一个加载ls文件 Laya.Scene3D.load("res/LayaScene_Level1/Conventional/Level1.ls",Laya.Handler.create(null,function(scene){             //加载完成获取到了Scene3d             Laya.stage.addChild(scene);         ...

来源: Laya_社区 发布时间: 20210428

370. Texture2D的GPU纹理压缩的使用(ActionScript-3D基础(AS3)-LayaAir3D之纹理) [ 87%]

...纹理 ```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_TextureGPUCompressi...

来源: Laya2.0_文档 发布时间: 20210714