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

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

121. 骨骼动画-橡胶人 [ 72%]

...ine/spineRes4/stretchyman.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

122. 网络和格式-POST [ 72%]

...est(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData', 'name=myname&psword=xxx', 'post', 'text'); } function showLogger() { lo...

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

123. 加载.lh文件报错 [ 72%]

...core.js:1126) at Loader.__proto.event (laya.core.js:882) at Loader.__proto.complete (laya.core.js:14965) at Loader.__proto.onLoaded (laya.core.js:14933) at EventHandler.__proto.runWith (laya.core.js:1125) at HttpRequest.__proto.event (laya.core.js:882) at HttpRequest.__proto.complete (laya.core.js:1...

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

124. vivo上,Laya.loader.create加载数组,进度卡在86%,没有回调也没有报错 [ 72%]

...题,在微信上是ok的,不过在vivo上Laya.loader.create一直没有complete回调,也没有报错,有人遇到过么? 快应用平台版本号:1060 2020-04-09 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

125. 网络和格式-GET [ 72%]

...est(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData?name=myname&psword=xxx', null, 'get', 'text'); } function showLogger() { ...

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

126. http 请求 once 的 回调参数,如何传递和接收? [ 72%]

...atcher 对象。 请求发送: var hr = new HttpRequest(); hr.once(Event.COMPLETE, this, http.success,[1,2,3]); hr.send("http://localhost:8082/hu_get",{}, "post","json",null);   回调方法: success:function (e,args) {     console.log(e); //此行可以得到响应内容     console.log(ar...

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

127. Laya.loader.create加载没找到文件的问题。 [ 72%]

...er.create如果加载的资源不存在,之后既不抛异常,也不发complete或者error事件,还有可能有什么行为呢?我现在加载一个.lh文件,然后就没有下文了,是否还会有其他事件触发呢? 2017-07-21 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

128. Animation播放完一次动画后的回调问题 [ 72%]

...imation播放完一次动画后的回调问题 starView.ani1.on(Laya.Event.COMPLETE,null,OnAnimation); 这个ani1是这个动画这样设置回调不对吗? 我看API那边事件就是这个COMPLETE 2017-02-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

129. unity导出粒子特效laya加载报错。 [ 72%]

...     at Loader.__proto.event (laya.core.js:1818)     at Loader.__proto.complete (laya.core.js:23571)     at Loader.__proto.onLoaded (laya.core.js:23519)     at EventHandler.__proto.runWith (laya.core.js:2061)     at HttpRequest.__proto.event (laya.core.js:1818)     at HttpRequest.__proto...

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

130. 骨骼动画-换装 [ 72%]

...s/spine/spineRes2/goblins.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() { //创建模式为1,可以启用换装 mArmature = mFac...

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