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

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

91. spine动画放大后,遮罩显示不正常 [ 71%]

...); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene("test/TestScene.scene"); }  onEnable() {         this.loadActor(this.actor1,"comp/r_01_...

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

92. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 71%]

...pineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); }   function onError() { trace("error"); }   function parseComplete() { Laya.stage.on(Event.CLICK, this, () => {     mArmature ...

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

93. FrameAnimation complete事件回掉参数为undefinend [ 69%]

...ion complete事件回掉参数为undefinend var ani1:Laya.FrameAnimation = this.ani1; ani1.play(0,false); ani1.on(laya.events.Event.COMPLETE,this,this.onPlayEnd); onPlayEnd(evt) { //evt 居然是undefinend。事件机制还能用吗? } 2017-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

94. Animation 下的Event.COMPLETE 回调 [ 69%]

...浏览: 963 关注: 2 人 Monica • 2018-03-23 17:31 你把作用域改成this看下呢? 建议先自己断点看下代码执行顺序,有问题再联系! 183*****288 • 2018-03-23 17:24 直接给我执行了播放完后的回调 动画没有显示

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

95. 关于2.3.0动作克隆问题,AB两个怪物用同一个模型,A的动作会影响B。 [ 69%]

.../attack state.clipStart = clipStart; state.clipEnd = clipEnd; state.clip = this._animator.getDefaultState().clip; this._animator.addState(state);每个状态的clip都是 this._animator.getDefaultState().clip 这个对象。 播放动作时,是根据动作类型设置是否循环。 this._animato...

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

96. 释放资源报错 [ 69%]

...rite3D.__proto.destroy (laya.d3.js:43737)   发现           if (this._cacheRootBone){             this._cacheRootBone.transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._boundChange); 这里的this._cacheRootBone非空,但是上面transform是...

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

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

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

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

98. 加载的时候动画会卡 [ 69%]

...时候动画会卡 上代码: _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

99. 1.5.4_beta,动画播放完毕的监视器很大概率会不起作用了 [ 69%]

...    {         // 第一次创建一个动画         if (null == this.mAnimaCur)         {             this.mAnimaCur = new laya.display.Animation();             this.mAnimaCur.interval = 100;             this.addChild(this.mAnimaCur);         }         var lo...

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

100. Spine动画最后一帧无法正常显示 [ 68%]

...后发现在Skeleton::_update方法中的以下语句:var tGraphics; if (this._aniMode == 0) { tGraphics = this._templet.getGrahicsDataWithCache(this._aniClipIndex, this._clipIndex) || this._createGraphics(); if (tGraphics && this.graphics != tGraphics) { this.graphics = tGraphics; } }决...

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