大约有 40 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
...别设置轴心点 this.sprite.pivotY = this.sprite.height/2; this.sprite.anchorX = 0.5; //锚点:sprite的中心 this.sprite.anchorY = 0.5; this.sprite.scale(0.5, 0.5); //缩放大小 this.sprite.scaleX = 2; //x、y分别设置缩放 this.sprite.scaleY = 2; this.sprite.skew(5, 5); //倾斜度 this....
来源: Laya3.0_文档 发布时间: 20251010
...些。我们选中`Button`组件,在属性面板,设置轴心点属性`anchorX`与`anchorY`的值为`0.5`,然后设置`Button`宽高与轴心点的xy轴位置,如图9所示。 (图9) *Tips:轴心点效果需要在UI中的组件属性中设置,在动效模板中设置轴心...
来源: Laya2.0_文档 发布时间: 20210715
...些。我们选中`Button`组件,在属性面板,设置轴心点属性`anchorX`与`anchorY`的值为`0.5`,然后设置`Button`宽高与轴心点的xy轴位置,如图9所示。 (图9) *Tips:轴心点效果需要在UI中的组件属性中设置,在动效模板中设置轴心...
来源: Laya2.0_文档 发布时间: 20210715
...些。我们选中Button组件,在属性面板,设置轴心点属性`anchorX`与`anchorY`的值为`0.5`,然后,设置Button宽高与轴心点的xy轴位置,如图9所示。  (图9) *Tips:轴心点效果需要在UI中的组件属性中设置,在动效模板中设置轴...
来源: Laya2.0_文档 发布时间: 20210715
...structor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //添加鼠标抬起事件侦听。抬起时还原按钮。 this.on(Laya.Event.MOU...
来源: Laya2.0_文档 发布时间: 20210715
...font = "Impact"; this.text.fontSize = 25; this.text.width = 800; this.text.anchorX = 0.5; this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 this.hr = new HttpReque...
来源: Laya3.0_文档 发布时间: 20251010
...大长度的比例进行设置,取值是`0-1`之间,例如,我们将`anchorX`与`anchorY`的属性值都取`0.5`,就是在X轴与Y轴长度的50%位置获得轴心点坐标。这样,在时间轴尾帧设置一个旋转角度值`rotation为360`,就实现了以中心点为轴心的旋转...
来源: Laya2.0_文档 发布时间: 20210715
...大长度的比例进行设置,取值是`0-1`之间,例如,我们将`anchorX`与`anchorY`的属性值都取`0.5`,就是在X轴与Y轴长度的50%位置获得轴心点坐标。这样,在时间轴尾帧设置一个旋转角度值`rotation为360`,就实现了以中心点为轴心的旋转...
来源: Laya2.0_文档 发布时间: 20210715
...大长度的比例进行设置,取值是`0-1`之间,例如,我们将`anchorX`与`anchorY`的属性值都取`0.5`,就是在X轴与Y轴长度的50%位置获得轴心点坐标。这样,在时间轴尾帧设置一个旋转角度值`rotation为360`,就实现了以中心点为轴心的旋转...
来源: Laya2.0_文档 发布时间: 20210715
...orEnv.IGameScene, node: Laya.Node) { if (node instanceof Laya.Sprite) node.anchorX = node.anchorY = 0.5; } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:57 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251010