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

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

271. Animation 先clear当前的动画, 然后从浏览器缓存 加载下一个动画会闪一下,这个怎么解决? [ 64%]

...! 别抢小虎 • 2018-05-08 10:51 /// 加载的时候是这样写的 this.anim.loadAtlas(source , null, cacheName); this.anim.scaleX = 1; this.anim.scaleY = 1; this.anim.pivotX = 0; this.anim.pivotY = 0; this.anim.interval = 30; this.anim.play(); 在加载这个动作以前我会先清理上一...

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

272. 加载的时候动画会卡 [ 64%]

...时候动画会卡 上代码: _pro.startLoad = function() {         this.loadLayer = new Lload();         this.big.addChild(this.loadLayer);         var imgArr = ;         imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cpr1.jpg",type:Loade...

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

273. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 64%]

...合我们调试代码 我们打开Floor.js 找到 Laya.timer.frameLoop(1, this, this.onLoop); 把这一行代码先给注释了 接着 我们先理一理自己的思路 我们要做玩家踩在地板上 那就要用到碰撞检测 上图中紫色的小点点是 两个物体的 坐标起始点 假设...

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

274. MovieClip卸载不掉,有内存泄漏 [ 64%]

... destroyItemsMovie() { let n: number = 25; while (--n > 0) { let mov0 = this["item" + n] as MovieClip; if (mov0) { mov0.visible && (mov0.visible = false); mov0.playing && mov0.stop(); mov0.parent && mov0.parent.removeChild(mov0); mov0.destroy(true); delete this["item" + n]...

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

275. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 64%]

...{ htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmet...

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

276. 3D粒子特效初始化卡顿 [ 64%]

...有解决方案,以下为示例代码: var sprite= Laya.loader.getRes(this._stlurl) as Laya.Sprite3D; this.skill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play();   这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在IDE的layaair...

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

277. 微信小游戏加载资源问题 [ 64%]

...annel extends Laya.SoundChannel { constructor(audio, miniSound) { super(); this._audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindToThis(fun, scope) { var rst = fun; rst = fun.bind(scope); return rst; ...

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

278. Clip切片动画有无播放完成的回调方法?有无检测播放次的方法? [ 64%]

...进的方法? 我尝试了如下方法,但是没有效果,求解。 this.clip_wpLevelup.on(Laya.Event.STOPPED, this, this.stopAndShowLvupResult); 2018-06-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Lay...

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

279. LAYAAIR加载SWF无线循环 [ 64%]

...          mc.height=700;             mc.on("click", this, onAniClick);                 trace("mcwidth:"+mc.width+"mcheight:"+mc.height);                      //  mc.on(Event.LOADED,this,onComp);         //  mc.on(Event.COMPLETE,thi...

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

280. spine 回调函数的参数没有效果 [ 63%]

...都是0,spine 输出文件见附件   sk_timelimit.on(Laya.Event.LABEL,this,this.animLabel); private animLabel(data:any) { }   var str = "readyGO1"; sk_view.sk_timelimit.play(str,false); 附件 : --> 归档.zip 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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