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

大约有 865 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)

111. laya.utils.Timer [ 72%]

...aller:*, method:Function, args:Array = null):void 延迟执行。 Timer  clear(caller:*, method:Function):void 清理定时器。 Timer  clearAll(caller:*):void 清理对象身上的所有定时器。 Timer  frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean...

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

112. Sprite-切换纹理 [ 72%]

...ey = (this.flag = !this.flag) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, monkey.height); } } new Sprite_SwitchTexture();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Text...

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

113. 定时器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...hideImage"); this.Image.visible = false; } } 5. 清理定时器 Laya.timer.clear:清理指定的定时器。定义如下: /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 */ clear(caller: any, method: Function): void { var handler: TimerHandler...

来源: Laya3.0_文档 发布时间: 20251010

114. graphics持续绘制扇形问题 [ 72%]

...Angle,curAngle+1,"#000000"); curAngle+=1; if(curAngle>360) { Laya.timer.clear(this,onLoop); } } 为了实现CD转圈的效果,所以持续画扇形 但是画出来的扇形有透明度还有花纹  如图,很无解,请问下这是什么情况啊?   附件 : --> TestUI.rar 2018-07-25 添...

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

115. 其他引擎的Demo-Example_21 [ 72%]

....drawPoly(0, 0, path.concat(), color); } function animate() { liveGraphics.clear(); liveGraphics.drawPoly(0, 0, path, color); } })();module laya { import Graphics = Laya.Graphics; import Sprite = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class PIXI_Example_21 { pr...

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

116. 火狐浏览器上webgl异常 [ 72%]

...has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. async.race.0._hash.e3a9c451.js%20line%20297%20%3E%20eval:4:30925 Error: WebGL: texSubImage2D: This operation requires zeroing texture data. This is slow. 如题 这可能是什么引起的? 2017-...

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

117. laya.resource.HTMLCanvas [ 71%]

... HTMLCanvas 实例。请不要直接使用 new HTMLCanvas! HTMLCanvas  clear():void 清空画布内容。 HTMLCanvas  destroy():void 销毁。 HTMLCanvas  getCanvas():*HTMLCanvas  getMemSize():int 获取内存大小。 HTMLCanvas  release():void 释放。 HTMLCanvas  size(w:Number, h:N...

来源: laya_api 发布时间: 20170929

118. 在浏览器上,模拟并重现SimpleSingletonList的问题了 [ 71%]

...impleSingletonList:" + element + " has  in  SingletonList.");     this.clear(); } 把状态清空,重新来过,这样可能会对多点触摸有影响,只是说不卡死了。   吐槽一下: remove(element) {      var index = element._getIndexInList();      this.length--; 这里...

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

119. 关于资源回收的问题 [ 71%]

...阶段会释放掉这部分资源?如果需要手动回收的话,调用clearclearAll即可还是需要调用其他函数? Video的对象destroy后如果有播放声音且循环播放的话,声音还会继续播放,是否意味着video的资源并没有被释放? 2017-05-09 添加评...

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

120. 写的更换纹理的代码不生效,大佬帮忙看一下。(工程附件已经上传) [ 71%]

...来自:                 //以下三行为不生效代码,clear()没有能够清除这个节点的纹理                 (this.owner as Laya.Sprite).graphics.clear();                 var t: Laya.Texture = Laya.loader.getRes("puzzlePic/pi-" +thi...

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