大约有 191 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
...认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponen...
来源: Laya2.0_api 发布时间: 20190513
...认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。View anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。View autoDestroy...
来源: Laya2.0_api 发布时间: 20190513
...tton.size(radius * 2, radius * 2); maskButton.anchorX = 0.5; maskButton.anchorY = 0.5; maskButton.stateNum = 1; this.guideContainer.addChild(maskButton); maskButton.clic...
来源: Laya_社区 发布时间: 20200119
...些。我们选中Button组件,在属性面板,设置轴心点属性`anchorX`与`anchorY`的值为`0.5`,然后,设置Button宽高与轴心点的xy轴位置,如图9所示。  (图9) *Tips:轴心点效果需要在UI中的组件属性中设置,在动效模板中设置轴...
来源: Laya2.0_文档 发布时间: 20210715
...G/yuan.png"; // range.scaleX=range.scaleY=800*2/range.width; // range.anchorX = range.anchorY = 0.5; // sp.addChild(range); //sp.scaleY=0.5; guideContainer.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE,this,move); } private function move():void { sp.x=Laya.stage.mouseX; sp.y=Laya.stage.mouseY; s...
来源: Laya_社区 发布时间: 20171213
...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
...认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponen...
来源: Laya2.0_api 发布时间: 20190513
...认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX轴锚点,值为0-1Component anchorY : NumberY轴锚点,值为0-1Component autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不...
来源: laya_api 发布时间: 20170929
...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
...别设置轴心点 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