大约有 987 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0070 秒)
Laya_社区(609) Laya2.0_文档(80) Laya3.0_api(67) Laya2.0_api(60) laya_api(56) Laya2.0_示例(41) Laya_示例(37) Laya3.0_文档(37)
...Bg(): void { var bg: Image = new Image(this.bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } private createTimerAnimation(): void { this.counter = new Clip(this.clipSkin, 10, 1); this.counter.autoPlay = true; this.co...
来源: Laya2.0_文档 发布时间: 20210714
...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite play(index:int = 0, loop:Boolean = true):void 播放动画。 MovieClip playTo(start:int, end:int, complete:Handler = null):void 从开始索引播放到结束索引,结束之后出发complete回...
来源: Laya2.0_api 发布时间: 20190513
...//设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = new Handler(this, this.onChange); //加载到...
来源: Laya2.0_文档 发布时间: 20210715
...//设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, 170); //最低滚动位置数字 this.vScrollBar.min = 0; //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScrollBar.changeHandler = new Handler(this, this.onChange); //加载到...
来源: Laya2.0_文档 发布时间: 20210715
...值为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
...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...
来源: laya_api 发布时间: 20170929
...hildren():void 销毁所有子对象,不销毁自己本身。 Node dispose():void 销毁对象并释放加载的皮肤资源。 Clip drawToCanvas(canvasWidth:Number, canvasHeight:Number, offsetX:Number, offsetY:Number):HTMLCanvas 绘制 当前Sprite 到 Canvas 上,并返回一个HtmlCanvas...
来源: laya_api 发布时间: 20170929
...值为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
...值为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
... a.loadImage("http://103.219.177.59:63344/%2 ... 6quot;) a.pos(512,0,true) this.owner.addChild(a) let b = new Laya.Sprite() b.loadImage("http://103.219.177.59:63344/%2 ... 6quot;) b.pos(512,512,true) this.owner.addChild(b) ...
来源: Laya_社区 发布时间: 20230316