大约有 172 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
...); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene("test/TestScene.scene"); } onEnable() { this.loadActor(this.actor1,"comp/r_01_...
来源: Laya_社区 发布时间: 20190730
...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
...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
...浏览: 963 关注: 2 人 Monica • 2018-03-23 17:31 你把作用域改成this看下呢? 建议先自己断点看下代码执行顺序,有问题再联系! 183*****288 • 2018-03-23 17:24 直接给我执行了播放完后的回调 动画没有显示
来源: Laya_社区 发布时间: 20180323
.../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
...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
...合我们调试代码 我们打开Floor.js 找到 Laya.timer.frameLoop(1, this, this.onLoop); 把这一行代码先给注释了 接着 我们先理一理自己的思路 我们要做玩家踩在地板上 那就要用到碰撞检测 上图中紫色的小点点是 两个物体的 坐标起始点 假设...
来源: Laya_社区 发布时间: 20160801
...时候动画会卡 上代码: _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
... { // 第一次创建一个动画 if (null == this.mAnimaCur) { this.mAnimaCur = new laya.display.Animation(); this.mAnimaCur.interval = 100; this.addChild(this.mAnimaCur); } var lo...
来源: Laya_社区 发布时间: 20161205
...后发现在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