大约有 865 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)
Laya_社区(573) Laya3.0_api(100) Laya2.0_api(69) laya_api(68) Laya2.0_文档(20) Laya3.0_文档(18) Laya2.0_示例(9) Laya_示例(8)
...分享 微博 QZONE 微信 devilsome 赞同来自: 你需要调用graphics.clear 每帧移动都需要clear,draw 2017-07-12 0 0 分享 微博 QZONE 微信 a1284964657 赞同来自: 最新测试出来的效果是 只要设置了 sprite的scale 在移动sprite sprite.graphics的坐标不会...
来源: Laya_社区 发布时间: 20170711
...WIDTH >> 1,this.CIRCLE_WIDTH >> 1) this.$circleSprite.graphics.clear() this.$circleSprite.graphics.drawCircle((this.DEF_SIZE - this.CIRCLE_WIDTH) >> 1, (this.DEF_SIZE - this.CIRCLE_WIDTH) >> 1, (this.DEF_SIZE - 20) >> 1, "#fff") this.addChild(this.$circleSprite) this.st...
来源: Laya_社区 发布时间: 20180123
...new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clear(); tmpMask.graphics.drawRec...
来源: Laya_社区 发布时间: 20200421
...本也有这个BUG,修复如下: laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++) 引擎代码 i没有赋初值,导致 i<n永远为false. 2020-03-21 2 1 分享 微博 QZONE 微信 腊笔小新 赞同来自: 186*****645 clear() { var e...
来源: Laya_社区 发布时间: 20200206
....timer.loop(100, this, () => { if (r >= 360) r = 0; r++; sp.graphics.clear(true); sp.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); sp2.graphics.clear(true); sp2.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); }) 附件 : --> test.zip 2019-07-01 添加评论 免费帖 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20190701
...p;& this._input.bytesAvailable < 1) { this._input.clear(); this._addInputPosition = 0; } var pre: number = this._input.pos; !this._addInputPosition && (this._addInputPosition = 0); this._input.pos = th...
来源: Laya_社区 发布时间: 20220822
...tion; private onBtn2Click(): void { this.body.destroyChildren(); this.body.clear(); this.body.destroy(); } 调试面板中的sprite个DrwaCall都有变化,但是CurMern么有发出变化,是否正常? 2 构造时创建 constructor() { this.aniBody = new Animation(); ...
来源: Laya_社区 发布时间: 20170615
... 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)) } function playEnd() { mLabelSprite.remov...
来源: Laya_示例 发布时间: 20251209
...根据指定的属性值,创建一个 Handler 类的实例。 Handler clear():Handler 清理对象引用。 Handler create(caller:*, method:Function, args:Array = null, once:Boolean = true):Handler[static] 从对象池内创建一个Handler,默认会执行一次并立即回收,如果不...
来源: laya_api 发布时间: 20170929
...根据指定的属性值,创建一个 Handler 类的实例。 Handler clear():Handler 清理对象引用。 Handler create(caller:*, method:Function, args:Array = null, once:Boolean = true):Handler[static] 从对象池内创建一个Handler,默认会执行一次并立即回收,如果不...
来源: Laya2.0_api 发布时间: 20190513