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

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

221. Laya2.7.1 射线提示rayCast未定义 [ 85%]

... this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(new Laya.Vector3(0, 0.7, 5)); this.camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); } onEnable() { Laya.stage.on...

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

222. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 85%]

...成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = ne...

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

223. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 85%]

...成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = ne...

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

224. ReferenceError: Laya3D is not defined? [ 85%]

...scene:Laya.Scene3D):void { Laya.stage.addChild(scene) as Laya.Scene3D; var camera:Laya.Camera = scene.getChildByName("Main Camera") as Laya.Camera; //camera.addComponent(CameraMoveScript); })); 2019-03-08 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

225. 渲染队列排序问题,导致Alpha混合效果出错 [ 85%]

...Alpha混合效果出错     FrustumCulling._traversalCulling=function(camera,scene,context,renderList){         var validCount=renderList.length;         var renders=renderList.elements;         var boundFrustum=camera.boundFrustum;         var camPos=camera._tran...

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

226. 3D场景UNITY导出相机,怎么获取并使用 [ 84%]

3D场景UNITY导出相机,怎么获取并使用 child":[ { "type":"Camera", "props":{ "isStatic":false, "name":"AutoCamera", "clearFlag":1, "orthographic":false, "fieldOfView":60, "nearPlane":0.3, "farPlane":90 }, var camera= scene.getChildByName("AutoCamera"); console.log(camera); 2017-09-26 添...

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

227. laya.d3.depthmap.DepthPass_API3.0 [ 84%]

...xt: RenderContext3D depthType: DepthTextureMode Returns void update update(camera: Camera, depthType: DepthTextureMode, depthTextureFormat: RenderTargetFormat): void Defined in laya/d3/depthMap/DepthPass.ts:107 渲染深度更新 Parameters camera: Camera depthType: DepthTextureMode depthTextureForm...

来源: Laya3.0_api 发布时间: 20231115

228. 微信小游戏wxmin图片加载有点问题 [ 84%]

...); if(false) { eval(23) } console.log(wx.request) //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var direct...

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

229. 请教如何在UI上显示3D模型 [ 84%]

...我想要透明的效果 就是只有模型 没有背景的效果,     camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY;     camera.clearColor = new Laya.Vector4(0,0,0,1);//null     camera.useOcclusionCulling = true;     这样设置了没效果 附件 : --> 2019-12-17 添加评...

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

230. 材质动画的使用(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 84%]

...reate(this, function(scene:Scene3D):void { Laya.stage.addChild(scene); var camera:Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); })); ```

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