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

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

221. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 65%]

...runWith (laya.core.js:686) at ResInfo.loadComplete (laya.core.js:12634) at EventHandler.__proto.runWith (laya.core.js:687) at ResInfo.__proto.event (laya.core.js:465) at LoaderManager.__proto._endLoad (laya.core.js:12504) at Loader.onLoaded (laya.core.js:12481) at EventHandler.__proto.runWith (laya....

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

222. 引擎创建的GameConfig.ts报错 [ 65%]

...untime上,然后编译,GameConfig百分百报错,如下:出错了: events.js:163 throw er; // Unhandled ' TypeScript error: src/gameconfig.ts(2,8): Error TS1192: Module '"src/script/maingameui"' has no default export. 请问我的操作有问题吗,如果让脚本控制场景上的元素...

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

223. 微信飞机大战报错 [ 65%]

...\node_modules\vscode-debugadapter\lib\protocol.js:24:60)     at emitOne (events.js:96:13)     at Socket.emit (events.js:188:7)     at readableAddChunk (_stream_readable.js:[...]   GameInfo.js代码: var GameInfo = (function(_super){     function GameInfo(){         GameInfo.super(this);...

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

224. 如何使用graphics.loadImage加载图片资源的时候,如何判断加载失败? [ 65%]

...代码来获取失败信息,但貌似没有效果的: this.avatar.on(Event.ERROR, this, function() { console.log('loaded fail'); }); 2017-09-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ybs1905com 赞同...

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

225. 用Loader加载完atlas,然后使用animation播放问题 [ 65%]

...用animation播放问题 this._load = new Laya.Loader() this._load.on(Laya.Event.ERROR, this, this.onError); this._load.on(Laya.Event.COMPLETE, this, this.loadComplete); this._load.load(this._data.url, Laya.Loader.ATLAS, true); 加载完成后 this._ani = new Animation(); this._ani.loadImages(这里...

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

226. 在Chrome下Layaair的List组件无法拖动,报如图错误 [ 65%]

...件无法拖动,报如图错误 Ignored attempt to cancel a touchstart event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.   附件 : --> 2017-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

227. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 65%]

...ar sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ //加载完成返回的data是arraybuffer; //.......这...

来源: Laya2.0_文档 发布时间: 20210715

228. 学习官方视频教程中飞机大战游戏出现的问题!! [ 65%]

...   this.addChild(this.playAnim);             this.playAnim.on(Laya.Event.COMPLETE,this,this.onPlayComplete);         } onMouseMove():void{         //根据鼠标位移主角方法         this.hero.pos(Laya.stage.mouseX,Laya.stage.mouseY);     }     2018-05-03 0 0 分享 微...

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

229. 求解关于跨域的具体操作 [ 64%]

...tHeader('Content-Type','application/x-www-form-urlencoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04...

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

230. 正常运行的2.1升级到2.2.0出现循环依赖的错误,这是咋回事丫 ? [ 64%]

....json"  at ChildProcess.exithandler (child_process.js:217:12) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:194:7) at maybeClose (internal/child_process.js:899:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) killed: false, code: 1, signal: null, cmd: 'D:...

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