大约有 987 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
Laya_社区(609) Laya2.0_文档(80) Laya3.0_api(67) Laya2.0_api(60) laya_api(56) Laya2.0_示例(41) Laya_示例(37) Laya3.0_文档(37)
...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分别设置x和y属性。 因为返回值为Sprite对象本身,所以可以使用如下语法:spr.pos(...).sca...
来源: Laya2.0_api 发布时间: 20190513
... this.label.color = "#7CFC00"; this.label.pos(500, 400); this.label.width = 300; this.label.align = "center"; // this.label.stroke = 1; this.label.strokeColor = "#000000"; this.label.zOrder=9980 ...
来源: Laya_社区 发布时间: 20190514
...aya.Sprite; this.box = new Sprite(); this.box.cacheAs = "bitmap"; this.box.pos(0,0); this.say.addChild(this.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); this.circle = new Spr...
来源: Laya_社区 发布时间: 20170807
...,这个详情可以参考API) 换一种理解思路大概就是:pos()调整的x,y相当于用pading去调整元素位置,而pivot()相当于用margin去调整元素位置 不造底层实现具体是什么样子的,这仅仅是个人理解。 2018-08-13 0 0 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20180810
...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite play():void 开始播放视频。 Video pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分别设置x和y属性。 因为返回值为Sprite对象本身,所以...
来源: Laya2.0_api 发布时间: 20190513
...ntent) { var cacheBox = new Box(); cacheBox.cacheAsBitmap = true; cacheBox.pos((this._isVertical ? 0 : startY) * cellWidth, (this._isVertical ? startY : 0) * cellHeight); this._content.addChild(cacheBox); this._content.optimizeScrollRect = true; box = cacheBox; } else { [b] var arr = []; [/b] for (v...
来源: Laya_社区 发布时间: 20180418
... onMouseMove); ape.mask = this.cMask; } function onMouseMove(){ this.cMask.pos(Laya.stage.mouseX, Laya.stage.mouseY); }; })(); 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: Che...
来源: Laya_社区 发布时间: 20180313
...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex setSelfBounds set_height set_scaleX set_scaleY set_transform set_...
来源: Laya3.0_api 发布时间: 20231102
..., 修改stage的scale后,会发生异常情况 Text类中竟然没有pos函数的api~ safari浏览器 图片异常 问题状态 最新活动: 2022-01-07 18:01 浏览: 7612 关注: 3 人 devyding • 2021-10-14 11:26 弱弱问一下,下个版本大概啥时候出?有没有可能给个临时...
来源: Laya_社区 发布时间: 20211013
...ounds(); console.log(bgBound.width/2) console.log(bgBound.height - 150) bt.pos(bgBound.width/2 - btBound.width/2,bgBound.height - 150) } } //启动游戏 new Game();打印结果: 0 -150 bgBound.width 和 bgBound.heigt 都为0 2016-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20160804