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

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

171. 请问怎么把arraybuffer作为图片显示出来 [ 64%]

...   求大神帮忙 let xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send("https://ask.layabox.com/static ... ot%3B, "", "get", "arraybuffer"); private completeHandler(data: ArrayBuffer) { //请问...

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

172. layaair ide 2.0.0 beta2 读取.lh文件报错 [ 63%]

...core.js:1127) at Loader.__proto.event (laya.core.js:883) at Loader.__proto.complete (laya.core.js:14959) at Loader.__proto.onLoaded (laya.core.js:14927) at EventHandler.__proto.runWith (laya.core.js:1126) at HttpRequest.__proto.event (laya.core.js:883) at HttpRequest.__proto.complete (laya.core.js:1...

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

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

...es/spine/spineRes1/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, () => {     ...

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

174. spine 播放错乱 [ 63%]

...); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos...

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

175. 有时候加载一大堆资源的时候某个个别图片资源加载失败如何处理 [ 63%]

...on",type:Loader.JSON,size:50,priority:1}]。          * @param    complete    加载结束回调。根据url类型不同分为2种情况:1. url为String类型,也就是单个资源地址,如果加载成功,则回调参数值为加载完成的资源,否则为null;2. url为数...

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

176. laya.display.AnimationPlayerBase [ 63%]

...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(poin...

来源: laya_api 发布时间: 20170929

177. layacmd在centOS 6.5上运行出错 [ 63%]

...SystemEntry.ui Export: RegisterDialog.ui Export: TestDialog.ui Export code complete picType: 0 newCmd: "/data/tools/node-v8.9.0-linux-x64/lib/node_modules/layacmd/ProjectExportTools/TP/atlas-generator" "/home/sgf_ebuild/LayaAirIDE/packParam.json" Waiting for pics packing execute: "/data/tools/node-v...

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

178. Laya2.0 beta3 Animator 中的 on 事件 怎么没了 [ 62%]

...Animator);//监听默认动画完成后播放站立动画ani.on(Laya.Event.COMPLETE,this,this.onAniComplete,[ani]);   可是 实际上并没有啊。 没有 on 这个 函数了 .  要用什么代替啊?  2018-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

179. request failed status:0 text: IOS HttpRequest [ 62%]

...器 和 火狐浏览器) 打开 直接Event.ERROR  不会进入  Event.COMPLETE 点击(点我赋值) 或者 (发送请求) 按钮 模拟器成功 火狐或者ios 浏览器失败 附件 dome ifarmLayaT.zip   附件 : --> 2017-06-20 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

180. 示例 骨骼动画换装 加不上点击事件 [ 62%]

...成可点击的指针“小手的样子”,求大神解析 function parseComplete() { mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STO...

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