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

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

191. [BUG]刚体约束问题,移动后约束混乱! [ 78%]

...ene3D()) as Laya.Scene3D;        //初始化照相机     var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera;     camera.transform.translate(new Laya.Vector3(0, 3, 30));          //方向光     const directionLight =this.newScen...

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

192. laya.d3.depthmap.DepthPass_API3.0 [ 78%]

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

193. 发射射线检测不到,物体有包围盒 [ 77%]

...g("添加预制体");             // }));               self.camera = scene3d.getChildByName("--- ENVIRONEMENT ---").getChildByName("Main Camera");                         self.scene = scene3d;          }));          this._ray = new Laya.Ray(new Laya.Vector3(0, 0,...

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

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

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

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

195. 在一个sprite3D上添加子物体camera ,也能够看到其他的物体。。。请问如何在摄像机中只看到一个想看到的sprite3D对象呢? [ 77%]

在一个sprite3D上添加子物体camera ,也能够看到其他的物体。。。请问如何在摄像机中只看到一个想看到的sprite3D对象呢? 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

196. 设置相机的skyboxMaterial无效 [ 77%]

... QZONE 微信 wulilio 赞同来自: 是为了改背景颜色吗?设置下camera.clearColor试试? camera.clearColor = new Laya.Vector3(0.2, 0.2, 0.2); 2018-10-16 0 0 分享 微博 QZONE 微信 蜀山 赞同来自: 不是改背景颜色,是3D场景,需要天空盒,1.7的版本是没问题...

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

197. ReferenceError: Laya3D is not defined? [ 76%]

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

198. 材质动画的使用(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 76%]

...aya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); })); ```

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

199. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 76%]

...l) as MyScene; this._scene.output(); Laya.stage.addChild(this._scene); var camera:Laya.Camera = this._scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle") as Laya.Sprite3D; co...

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

200. 请问2.0射线到底如何使用呢? [ 75%]

...s=new Vector2(MouseManager.instance.mouseX, MouseManager.instance.mouseY); camera.viewportPointToRay(this.mousePos,ray); this.ps.rayCast(ray,this.rayCastHit,500, 0); 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

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