大约有 93 项符合查询结果, 库内数据总量为 24,848 项。 (搜索耗时: 0.0067 秒)
...00", 4); sprite.graphics.drawCircle(0, 0, 350, null, "#ff0000", 4); sprite.pivotX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.addChild(sprite); Laya.Tween.to(sprite, {scaleX:1.5, scaleY:1.5, alpha:0}, 5000); 2018-07-08 ...
来源: Laya_社区 发布时间: 20180708
...=false; anin.interval=interval; private function onloaded():void { anin.pivotX=anin.getBounds().width/2; anin.pivotY=anin.getBounds().height/2; } 如上:动画加载成功后设置的描点,在电脑上运行正常,打包APK后到手机上运行,描点未生效,还是在原来的00...
来源: Laya_社区 发布时间: 20180806
...:void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.playerHB.height / 2; this.playerHB.y = 500; this.playerHB.txtName.text = "搞个毛啊"; // this.playerVO.name; this.addChild(this.playerHB); } private aaa():void ...
来源: Laya_社区 发布时间: 20180102
...Event):void { ani_planet = new MovieClip(); ani_planet.pivotY = ani_planet.pivotX = 350; ani_planet.x = Laya.stage.width/2; ani_planet.load("1.swf",true); ani_planet.y = i*50; addChild(ani_planet); i++; } 以上代码执行后生成一个新的MovieClip实例,然而会把旧的MovieCip销毁掉,...
来源: Laya_社区 发布时间: 20180531
...信 rt1223103 赞同来自: 第三个图片,改变了中心点 pivotX 和 pivotY 2017-11-09 0 2 分享 微博 QZONE 微信 rt1223103 赞同来自: 但是那几个黑点,是根据改变后的图片 再次调用 getGraphicBounds(true) 画出来的,你没发现,没变吗? 2017...
来源: Laya_社区 发布时间: 20171109
...epi • 2017-10-27 11:08 谢谢 再问一句,怎么设置中心点, 是pivotX 和 pivotY 吗 unclepi • 2017-10-26 15:59 好的。还有一个问题:用size()函数设置宽高来生成点击区域,但是可点击区域和动画实际显示的区域不一致,求解 Monica • 2017-10-26 2...
来源: Laya_社区 发布时间: 20171026
... , null, cacheName); this.anim.scaleX = 1; this.anim.scaleY = 1; this.anim.pivotX = 0; this.anim.pivotY = 0; this.anim.interval = 30; this.anim.play(); 在加载这个动作以前我会先清理上一个动画的资源 this.anim.clear(); Laya.loader.clearTextureRes( url); 别抢小虎 • 2018-05-08...
来源: Laya_社区 发布时间: 20180507
... y="1" x="680" width="90" var="close" skin="setting/close.png" pivotY="45" pivotX="45" height="90" editorInfo="compId=18"/> <Panel y="275" x="88" width="511" var="headImgPanel" height="88" editorInfo="compId=20"> <UIView y="0" x="0" var="selectHeaderImage" editorInfo="source=HeadImages.u...
来源: Laya_社区 发布时间: 20170221
...显示筛选会不精确)。 Sprite parent : Node[override] Sprite pivotX : NumberX轴 轴心点的位置,单位为像素,默认为0。轴心点会影响对象位置,缩放中心,旋转中心。Sprite pivotY : NumberY轴 轴心点的位置,单位为像素,默认为0。轴心点...
来源: laya_api 发布时间: 20170929
...exture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _this.pivotY = _this.row_data.property.y_m * texture.sourceHeight _this.scaleY = _this.set_height / texture.sourceHeight })) kezhiyu • 2018-05-31 13:07 你不需要...
来源: Laya_社区 发布时间: 20180530