大约有 275 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0034 秒)
... spotLight.color = new Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Vector3(0.0, 1.2, 0.0); //设置聚光灯的方向 var mat:Matrix4x4 = spotLight.transform.worldMatrix; mat.setForward(new Vector3(0.15, -1.0, 0.0)); directionLight.transform.worldMatrix=mat; //设置...
来源: Laya2.0_文档 发布时间: 20210715
...。BaseCamera timer : Timer时间控制器,默认为Laya.timer。Node transform : Transform3D[read-only] 获取精灵变换。 Sprite3D up : Vector3[read-only] 获取上向量。 BaseCamera url : String 获取资源的URL地址。 Sprite3D useOcclusionCulling : Boolean 渲染时是否用遮...
来源: laya_api 发布时间: 20170929
... if (Render.isConchNode) { this["drawSkin"] = function(skin:*):void { skin.transform || (skin.transform = Matrix.EMPTY); __JS__("this._addCmd([skin])"); this.setSkinMesh&&this.setSkinMesh( skin._ps, skin.mVBData, skin.mEleNum, 0, skin.mTexture,skin.transform ); }; } } (项目中未使用Sk...
来源: Laya_社区 发布时间: 20180416
...让一个Sprite做rotationX旋转吗? 类似Flash里的Matrix3D类 给mc.transform.matrix3D设置的那种 或者类似Flash里的 rect1.rotationX = 15; 这种设置 可以轻松让Sprite做一个绕X轴的旋转? 2016-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20161228
...votX:Number = 0, pivotY:Number = 0):void 旋转当前绘图。(推荐使用transform,性能更高) Graphics save():void 保存当前环境的状态。 Graphics scale(scaleX:Number, scaleY:Number, pivotX:Number = 0, pivotY:Number = 0):void 缩放当前绘图至更大或更小。(推荐使用trans...
来源: laya_api 发布时间: 20170929
...。 Sprite3D timer : Timer时间控制器,默认为Laya.timer。Node transform : Transform3D[read-only] 获取精灵变换。 Sprite3D url : String 获取资源的URL地址。 Sprite3DPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By Sprite3D(na...
来源: laya_api 发布时间: 20170929
...题了,在傲游浏览器上横屏切到竖屏的时候layaCanvas.style.transform.matrix变成了matrix(x,x,x,x,x,292),正常值应该是matrix(x,x,x,x,x,0) 135*****636 • 2018-10-22 18:40 变换矩阵的最后一位在傲游浏览器上异常了
来源: Laya_社区 发布时间: 20181019
...r3(1, 1, 1); //设置平行光的方向 var mat:Matrix4x4 = directionLight.transform.worldMatrix; mat.setForward(new Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` **setForward** 平行光的方向,分别代表x、y、z轴上的方向,负数为负轴,正数为正...
来源: Laya2.0_文档 发布时间: 20210715
...。BaseCamera timer : Timer时间控制器,默认为Laya.timer。Node transform : Transform3D[read-only] 获取精灵变换。 Sprite3D up : Vector3[read-only] 获取上向量。 BaseCamera url : String 获取资源的URL地址。 Sprite3D useOcclusionCulling : Boolean 渲染时是否用遮...
来源: laya_api 发布时间: 20170929
... style="position: absolute; left: 0px; top: 0px; background: rgb(0, 0, 0); transform-origin: 0px 0px 0px; transform: matrix(1, 0, 0, 1, 0, 0); width: 100%; height: 100%; display: block;"></canvas></div> 目前layaCanvas的大小是自适应屏幕的大小,建议改为自适应layaCo...
来源: Laya_社区 发布时间: 20180124