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

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

41. WaterPrimaryMaterial的使用 [ 70%]

...aya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); // var material: Laya.WaterPrimaryMaterial = new Laya.WaterPrimaryMaterial(); var material:...

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

42. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 69%]

...//调整胖子的相对旋转,相对位移,以及缩放。 this.pangzi.transform.localRotation = this._rotation; this.pangzi.transform.localPosition = this._position; this.pangzi.transform.localScale = this._scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从...

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

43. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 69%]

...//调整胖子的相对旋转,相对位移,以及缩放。 this.pangzi.transform.localRotation = this._rotation; this.pangzi.transform.localPosition = this._position; this.pangzi.transform.localScale = this._scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从...

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

44. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 68%]

...n"); //调整胖子的相对旋转,相对位移,以及缩放。 pangzi.transform.localRotation = _rotation; pangzi.transform.localPosition = _position; pangzi.transform.localScale = _scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从龙2的节点上移除 drag...

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

45. 摄像机视野、摄像机范围、摄像范围问题 [ 68%]

...围90度 camera.fieldOfView = 90;   //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position,new Laya.Vector3(0,-1,0)); 2017-08-09 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 好的,多多分享,这样也可以让更多的开发者受教(*^__^*) …… 2017-08-09...

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

46. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 68%]

....scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 3, 3)); this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); this.camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = this.scene.add...

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

47. laya 3D碰撞器与 Unity 不一致问题 [ 67%]

...移 laya预览效果与Unity运行效果一致   将下图上方的cube Transform属性的Scale 设置为5:1:1的比例将X轴 Scale 拉伸5倍后 再讲BoxCollider的Center属性 x 设置为偏移 -0.3 得到如下效果     接下来我们来看看unity 的运行效果: unity 运行效果图...

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

48. laya阴影问题 [ 65%]

...a.BoxColliderShape(b, 0, c); } this.MainScene3D.addChild(cardOne); cardOne.transform.position = pos; cardOne.transform.rotate(new Laya.Vector3(0,0,0), false, false); if(index == 0){ cardOne.meshRenderer.receiveShadow = true; }else{ var unlitMat = new Laya.PBRStandardMaterial(); var texture: Laya.Tex...

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

49. Sprite3D支持的Unity导出列表(TypeScript-3D基础(TS)-LayaAir3D之Unity插件使用) [ 64%]

...Game Object ![Game Object](./img/GameObject.png) - name - Static - Layer - Transform 1. Position 2. Rotation 3. Scale - Component - Camera ![Camera](./img/components/InspectorCamera35.png) 1. Clear Flags - Skybox - Solid Color - Depth only - Don't Clear 2. Background 3. Projection - perspective - Fi...

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

50. 怎么把世界坐标系转为屏幕坐标系? [ 60%]

... 赞同来自: 讨厌起名字=0= camera.viewport.project(layaMonkey3D.transform.position, camera.projectionViewMatrix, _outPos);       //获取的2d坐标必须做兼容屏幕适配操作     layaMonkey2D.pos(_outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage.clientScaleY);   htt...

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