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

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

141. laya.ani.swf.MovieClip [ 71%]

...sPath:String = null):void 加载资源。 MovieClip loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取...

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

142. 骨骼动画-换装 [ 71%]

...s/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseComplete() { const Event = Laya.Event; // 创建模式为1,使用动画自...

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

143. laya.ani.bone.Templet [ 70%]

...let  isParseFail : Boolean = false 是否解析失败 Templet  isParserComplete : Boolean = falseTemplet  mBoneArr : Vector.<Bone>Templet  mRootBone : BoneTemplet  pathArr : Array path数据 Templet  rate : NumberTemplet  skinDataArray : Array 皮肤数据 Templet  skinDic : Ob...

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

144. Spine骨骼动画点击区域偏移 获取不到width height [ 70%]

...bin/res/spine_model/${spine}.sk`);         this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]);     }     private parseComplete(x, y) {         this._factory.off(Laya.Event.COMPLETE, this, this.parseComplete);         var sprite = this._factory.buildArmature(0); ...

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

145. 网络请求添加headers后 post数据错误 [ 70%]

...ent.PROGRESS, this, this.onHttpRequestProgress); this.http.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.http.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.http.send(url, 'chapterid=7125', 'post', 'json', headers); 正常示例// this.caller = caller; this.callbackH...

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

146. Laya.loader.create究竟在什么特定情况下会加载失败? [ 70%]

...来自: 而且更诡异的是,都加载失败了,为什么还要促发complete事件,让外部以为加载完成,然后就去getRes,导致报错! 2018-07-27 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个问题是首次出现,需要加断电一步一步查,没有先例...

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

147. Laya.Tween怎么运用到3D对象上? [ 70%]

...a.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   无法直接设置原因是浅拷贝变量无法同步到原对象中去   2018-01-12 0 3 分享 微博 QZONE 微信 源 赞同来自: Laya.Tween.to(this.box.transform, { localPo...

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

148. 【简单跑酷--JS版】---Lv.3 添加地板 [ 70%]

... this.bgTexture = null; //最大右边距离 this.maxRight = 0; this.isOutComplete = false; //背景 this.bg = null; Floor.__super.call(this); } //事件名称 //超过屏幕一定值出发新的floor事件 Floor.OUT_COMPLETE = "floor_out_complete"; //整个地板都不在屏幕里面事件 Floor.OU...

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

149. 性能测试-骨骼 [ 70%]

...fer = Loader.getRes(mAniPath); mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.parseData(tTexture, arraybuffer, 10); } function parseComplete() { for (var i = 0; i = tAnimNum) { mActionIndex = 0; } for (var i = 0, n = mAnimationArray.length; i = []; private mFact...

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

150. [临时解决]bug?加载sk问题 [ 70%]

...   var _proto = Test01.prototype;      _proto.preload = function (complete) {         console.log("preload..." + (++this.numPreloadCalls));          if (this.dragon_sk._templet) {             complete();         } else {             Laya.timer...

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