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

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

251. 获取lh动画控制失败【已解决】 [ 51%]

...          "fieldOfView":29,                 "nearPlane":0.1,                 "farPlane":100             },             "customProps":{                 "layer":0,                 "translate":[                     ...

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

252. unity里导出的骨骼动画无法读取 [ 51%]

...            var camera:Camera = (scene.addChild(new Camera( 0, 0.1, 100))) as Camera;                 camera.transform.translate(new Vector3(0, 3, 3));                 camera.transform.rotate(new Vector3( -30, 0, 0), true, false);             ...

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

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

...cene()); //添加照相机 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, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya....

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

254. 前述问题this.sp3Role.transform.position无效 [ 51%]

...yBoardManager.hasKeyDown(Keyboard.W)) { this.spRole.y -= 1; // newPos.y += 0.1; this.rotateRole(this.rotationW); //转换2D屏幕坐标系统到3D正交投影下的坐标系统 this._camera.convertScreenCoordToOrthographicCoord(new Vector3(this.spRole.x, this.spRole.y, 0), newPos); this.sp3Role.tran...

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

255. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 51%]

...s Scene3D; //加载相机 var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight...

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

256. 多个(三个及以上)克隆体同时使用crossFabe播放攻击和待机动画,攻击动画完成之后切换为待机动画,会导致播放的动画异常 [ 50%]

...作的时候,第三个怪物在待机却抽搐了一下  引擎版本2.0.1beta  没有锁帧  克隆方式: Laya.Sprite3D.instantiate(sprite,parent,isHoldWorldPos,pos); 播放方式: this.animator.speed = speedRate; // animState._resetPlayState(0);//animState._elapsedTime this.animator.cros...

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

257. startDrag问题,提示参数和错误检查不一致,且惯性阻尼无效 [ 50%]

... 个回复 layabox小高 赞同来自: 惯性阻尼无效是因为传递的0.1太小。 参数是六个,按代码提示即可。注释有点问题。 2023-06-25 0 0 分享 微博 QZONE 微信 layabox小高 赞同来自: 您好,少写了一个参数如下图。 2023-05-15 0 2 分享 微博 QZONE ...

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

258. 我就在unity中加了一个cube,导出后,在laya预览中怎么会有2个cube,而且位置还不一样,也没有贴图 [ 50%]

...(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.ambientColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Laya.Vector3(0.6, 0.6, 0.6); direc...

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

259. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 50%]

...a.Scene3D(); Laya.stage.addChild(scene3d); var camera = new Laya.Camera(0, 0.1, 1000); scene3d.addChild(camera); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.translate(new Laya.Vector3(1000, 0, 0)); camera.orthographic = true; //正交投影垂直矩阵尺寸 ...

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

260. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 50%]

...adow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1), new Laya.Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; sphereSprite.meshRenderer.receiveShadow = true; ``` 然后来看下效果。 ![](img/1.png)(图1)

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