大约有 97 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
...ainer.hitArea = hitArea; guideContainer.mouseEnabled = true; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000");我的理解是给父容器guideContainer(包含遮罩和圆形课交互区域)设置一个可点击区域(舞台宽高的范围)并接受鼠...
来源: Laya_社区 发布时间: 20170803
...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_社区 发布时间: 20191215
...00) { this.ball.x = 286; this.ball.y = 1140; // 清楚定时器 Laya.timer.clear(this, this.moveDownBall); } }; 2017-11-08 0 0 分享 微博 QZONE 微信 ymsdandan 赞同来自: 代码的问题,你得自己调试才行,也可以发个demo过来 2017-11-08 0 0 分享 微博 QZONE 微信 l13273...
来源: Laya_社区 发布时间: 20171108
...var ui_hpBarMask = new Laya.Sprite(); ui_hpBarMask.graphics.clear(); ui_hpBarMask.graphics.drawRect(0, 0, 154, 12, 0xffffff); this.txt_pro.displayObject.mask = ui_hpBarMask; 附件 : --> 2022-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20220531
...aya.stage.off(Laya.Event.MOUSE_MOVE,this,bb) }) function bb(e){ s.graphics.clear(); arr[arr.length-1].push(e.stageX); arr[arr.length-1].push(e.stageY); for(var i=0;i<arr.length;i++){ s.graphics.drawLines(0, 0, arr[i], "#ff0000", 5); } }
来源: Laya_社区 发布时间: 20180510
...; var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000"); count++; } } 2018-11-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...
来源: Laya_社区 发布时间: 20181113
...,width,height)); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawImage(source,0,0,width,height); this._pixels=new Uint8Array(Browser.context.getImageData(0,0,width,height).data.buffer); } } this._readyed=true; this._activeResource(); } 参考文档 https...
来源: Laya_社区 发布时间: 20190809
...白部分的颜色问题 3D模型tween旋转 关于removechild、destory、clear的问题 Panel中的东西左右拖动好象有问题 laya1.7.9beta版 问题状态 最新活动: 2018-01-22 10:10 浏览: 896 关注: 3 人 Laya_Aaron • 2018-01-22 10:11 竖着的滑动条是看鼠标的y坐标,横...
来源: Laya_社区 发布时间: 20180119
...se)); } public createGameScene() { this.progressUI.onDisable(); Laya.timer.clear(this, this.updataPosition) let gameManager = new GameManager(this.token); gameManager.preInit(); } public progress(e) { this.progressUI.setPosition(Laya.stage.width / 2, Laya.stage.height / 2); this.progressUI.UIMenu.tw...
来源: Laya_社区 发布时间: 20171204
...nderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font) : this.font); Browser.context.fon...
来源: Laya_社区 发布时间: 20180417