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

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

241. convert3DCoordTo2DScreenCoord 当3dcamera有旋转的情况下,转换出来的坐标不正确 [ 46%]

...new Camera(0, 0.1, 300); _scene3d.addChild(_camera3d); _camera3d.transform.translate(new Vector3(0, 0, 150)); _camera3d.clearColor = null; _camera3d.orthographicProjection = true; _camera3d.transform.rotationEuler = new Vector3(Tools.A2R(-30), Tools.A2R(45)); 当3dcamera有旋转的情况下, Uti...

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

242. discard property,please use transform's property instead [ 46%]

...cene.addChild(new Laya.Camera(0, 0.1, 1000));         camera.transform.translate(new Laya.Vector3(0, 1.5, 4));         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);         camera.addComponent(CameraMoveScript);         //方向光         var directionLight ...

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

243. Cannot read property 'rayCast' of undefined [ 46%]

...Child(this.scene); this.scene.addChild(this.camera); this.camera.transform.translate(new Laya.Vector3(0, 3.5, 1)); this.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(); this.sc...

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

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

...ew Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var directionLight = new Laya.DirectionLight(); this.scene.addChild(directionLight); //设置灯光方向 var mat = dir...

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

245. 材质-物理基础渲染材质 [ 45%]

...a.HDREXPOSURE, Math.pow(2, 0.0)); scene.addChild(camera); camera.transform.translate(new Vector3(0, 0, 1.0)); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load(envpath...

来源: Laya_示例 发布时间: 20241001

246. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 44%]

...= new Laya.Vector3(4, 4, 4);                 layaMonkey2.transform.translate(new Laya.Vector3(-10, 13, 0));             })); 但是编译时报如下错误: [23:43:30] Starting 'compile'... { Error: D:/Workspace/LayaTest/demo010/src/script/GameUI.ts(50,17): semantic error TS2339: [31...

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

247. 微信排行榜无法滑动的问题 [ 44%]

...h / Laya.stage.width, 0, 0, Browser.clientHeight / Laya.stage.height); mat.translate(p.x * mat.a, p.y * mat.d); wx.postMessage({type: "resizeShared", url: "", data: {matrix: mat}, isLoad: false}); 沐风 • 2018-08-16 17:03 我改了主域代码后,就突然报这个问题:g...

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

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

....sphere.transform.position; //将创建的球平移 this.sphere2.transform.translate(new Laya.Vector3(0, 1.3, 0),false); //将从导出球上拿到的材质 贴给代码创建的球 this.sphere2.meshRenderer.material = billinMaterial; ``` 然后就可以看到效果了,如图4所示: ![](img/4.p...

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

249. laya.d3.core.BaseCamera [ 44%]

...c] BaseCamera  VIEWPROJECTMATRIX : int[static] BaseCamera  VPMATRIX_NO_TRANSLATE : int[static] BaseCameraProperty DetailclearColorpropertypublic var clearColor:Vector4摄像机的清除颜色,默认颜色为CornflowerBlue。clearFlagproperty public var clearFlag:int清楚标记。cullingMaskpro...

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

250. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 43%]

...this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);          this.scene.addChild(this.camera);         Laya.loader.create("res/...

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