• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 849 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

131. 红米K20pro 多个手指同时按下就会报这个错 object has in SimpleSingletonList [ 68%]

...本也有这个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

132. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 68%]

....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

133. 引擎socket类_onMessage bug [ 68%]

...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

134. Animation 使用疑问 [ 68%]

...tion; private onBtn2Click(): void { this.body.destroyChildren(); this.body.clear(); this.body.destroy(); } 调试面板中的sprite个DrwaCall都有变化,但是CurMern么有发出变化,是否正常?   2 构造时创建   constructor() {         this.aniBody = new Animation();       ...

来源: Laya_社区 发布时间: 20170615

135. 骨骼动画-Spine事件 [ 68%]

... 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_示例 发布时间: 20240930

136. laya.utils.Handler [ 68%]

...根据指定的属性值,创建一个 Handler 类的实例。 Handler  clear():Handler 清理对象引用。 Handler  create(caller:*, method:Function, args:Array = null, once:Boolean = true):Handler[static] 从对象池内创建一个Handler,默认会执行一次并立即回收,如果不...

来源: laya_api 发布时间: 20170929

137. laya.utils.Handler [ 68%]

...根据指定的属性值,创建一个 Handler 类的实例。 Handler  clear():Handler 清理对象引用。 Handler  create(caller:*, method:Function, args:Array = null, once:Boolean = true):Handler[static] 从对象池内创建一个Handler,默认会执行一次并立即回收,如果不...

来源: Laya2.0_api 发布时间: 20190513

138. 鼠标交互-Hold [ 68%]

...: 0.8 }, 300); } else // 如果未触发hold,终止触发hold Laya.timer.clear(this, onHold); Laya.stage.off(Event.MOUSE_UP, this, onApeRelease); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture = Laya.Texture; import Browser = ...

来源: Laya_示例 发布时间: 20240930

139. Laya.loader.load 教程代码出错 [ 67%]

...g() +".bmp";                          img.graphics.clear();             var txture:Texture = Laya.loader.getRes(url);             img.graphics.drawTexture(txture);             img.size(txture.width,txture.height);         }    ...

来源: Laya_社区 发布时间: 20170918

140. 鼠标交互-Hold [ 67%]

...0.8 }, 300); } else { // 如果未触发hold,终止触发hold Laya.timer.clear(this, this.onHold); } Laya.stage.off(Event.MOUSE_UP, this, this.onApeRelease); } } new Interaction_Hold();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture =...

来源: Laya2.0_示例 发布时间: 20240930