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

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

41. 用Transform和直接设置xy坐标的效果不一致 [ 94%]

Transform和直接设置xy坐标的效果不一致 LayaAir2.0直接设置坐标的效果是正确的,设置transform不正确。在LayaAir1.x两个效果都是一致的。 let txt: Laya.Text = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; txt.x = 1136 / 2, txt.y = 320; Laya.stage...

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

42. 照相机-正交相机 [ 93%]

...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.translate(new Laya.Vector3(5, -10, 500)); camera.orthographic = true; //正交投影垂直矩阵尺寸 camera.orthographicVerticalSize = 10; var di...

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

43. swf读取不出来了, Cannot read property 'transform' of undefined [ 93%]

swf读取不出来了, Cannot read property 'transform' of undefined 项目里面有转换前的swf和fla,麻烦帮我看下,多谢了 附件 : --> swf读出错误.rar 2018-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

44. Sprite3D.transform.up中up向量是相对于什么方向上的向量? [ 93%]

Sprite3D.transform.up中up向量是相对于什么方向上的向量? Sprite3D.transform.up中up向量是相对于什么方向上的向量?camera中的up向量好理解,这个Sprite3D的不懂 2017-07-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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

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

...Light()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法...

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

46. Laya.Transform3D 能否以世界中某个点作为中心进行旋转? [ 93%]

Laya.Transform3D 能否以世界中某个点作为中心进行旋转? 如题,类似于Unity3D中的 Transform.RotateAround ? 如果没有,请问有什么思路可以模拟一下? 2019-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

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

...Light()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法...

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

48. laya3d变换,m.transform.worldMatrix.setForward中,setForward的用法? [ 93%]

laya3d变换,m.transform.worldMatrix.setForward中,setForward的用法?   Laya3D中有个世界坐标的 setForward方法 是设置向前方向的么?   为什么我这样写,形状都变了呢? meshbox.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 1));       附件 : --...

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

49. 射线检测-碰撞器混合 [ 93%]

...is.camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 6, 13)); this.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.addComponent(CameraMoveScript); //加载猴子 this.layaMonkey = this.scene.addChild(Laya.Sp...

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

50. Mesh网格-网格加载 [ 93%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0....

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