大约有 176 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0042 秒)
Laya_社区(90) Laya3.0_api(61) Laya2.0_文档(7) Laya2.0_示例(6) Laya_示例(5) Laya3.0_文档(5) laya_api(1) Laya2.0_api(1)
...chImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) } }这是官方的切换位图的示例,但是点击位图距离容器top和left100的区域,...
来源: Laya_社区 发布时间: 20180502
...代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之...
来源: Laya_社区 发布时间: 20191216
...lSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { ...
来源: Laya_社区 发布时间: 20170406
...exture(sp.drawToCanvas(sp.width,sp.height,0,0)) sp.graphics.clear() sp.graphics.destroy() tex.destroy() tex.disposeBitmap() tex.bitmap.releaseResource(); } 每次调用都不会刷...
来源: Laya_社区 发布时间: 20190120
... if (maskSp) { maskSp.graphics.clear(); var w:Number = maskSp.getSize().width; var h:Number = maskSp.getSize().height; ...
来源: Laya_社区 发布时间: 20180404
...ow.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _th...
来源: Laya_社区 发布时间: 20180530
... var color = (flag = !flag)?"#A52A2A":"#FFA500" c.graphics.clear(); c.graphics.drawRect(50, 50, 300, 100, color); Laya.stage.addChild(c); } })(); 2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20170510
...导航网格。未勾选时,该节点会被完全忽略。 Bake From: Graphics是从Sprite的图形数据生成导航网格。例如图2-12所示, (图2-12) Physics是从物理碰撞器数据生成导航网格。例如图2-13所示, (图2-13) MeshRender是从网格数据生成导航...
来源: Laya3.0_文档 发布时间: 20250310
...d(guideContainer); maskArea = new Sprite(); maskArea.alpha = 0.3; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#0ef604"); guideContainer.addChild(maskArea); //EventManager.add(MyEvent.PLAYER_MOVE,this,playerMoveFun); playerMoveFun(); //EventManager.add(MyEvent.MYR...
来源: Laya_社区 发布时间: 20171213
...r.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; sp=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); Laya.stage.addChild(sp); Laya.timer.loop(delay,this,onLoop); } private function onLoop():void { delay-=50; sp.x+=20; Laya.timer.clear(this,onLoop); Laya.timer.loop(delay,this,onLoop);...
来源: Laya_社区 发布时间: 20170626