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

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

221. laya websocket 在微信小游戏连接不上服务器 [ 81%]

...onnectSocket({ url: "wss://s.timeinflow.com" }); wx.onSocketOpen(function (res) { // webSocket打开事件处理 console.log('websocket opened.'); var msg = JSON.stringify({ Hello: { Name: 'hi lei lei~' }}) wx.sendSocketMessage({ data: msg }); }); wx.onSocketError(function (res) { // 链接出错时...

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

222. 性能测试-骨骼 [ 81%]

...(Browser.width, Browser.height, WebGL); Stat.show(); mTexturePath = "../../res/skeleton/" + fileName + "/" + fileName + ".png"; mAniPath = "../../res/skeleton/" + fileName + "/" + fileName + ".sk"; Laya.loader.load([ { url: mTexturePath, type: Loader.IMAGE }, { url: mAniPath, type: Loader.BUFFER }],...

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

223. canvas下资源清理的问题 [ 81%]

...lick);                          Laya.loader.load([{url: "res/atlas/common.atlas", type: Loader.ATLAS}]);                          Stat.show();         }                  private function onClick(e:Event):void         {             ...

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

224. Laya.loader加载BUG [ 81%]

...查是否正在下载,避免网页reload         this.event("progress",0);          var type=this._type;         if (type=="plfb"){             this.parsePLFBData(data);             this.complete(data);         }else if (type=="plf"){    ...

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

225. 图集版本加载问题 [ 81%]

...载问题 var obj:any = {                             url:"res/atlas/comp.atlas?version=1.0.0",                             type: Loader.ATLAS                       };Laya.loader.load(obj); 引擎自动加载的png地址是res/atlas/comp.png, 而不是res/atla...

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

226. Animation的createFrames为何加载不了有的图集资源 [ 81%]

...mple() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbeattack/0.png","res/atlas/monsterbeattac...

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

227. 微信小游戏设置网络动态加载无法显示 [ 81%]

...tps://lg-f6ejft4c-1256468286 ... 3B%3B var asset = []; asset.push({ url : "res/atlas/game.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "res/atlas/bubbles.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "game/bgGame.png", type:Laya.Loader.IMAGE });  Laya.loader.load(asset,Laya.Handler...

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

228. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 81%]

...路径 var data = []; for (var i = 0; i < 10; ++i) { data.push("../../res/ui/listskins/1.jpg"); data.push("../../res/ui/listskins/2.jpg"); data.push("../../res/ui/listskins/3.jpg"); data.push("../../res/ui/listskins/4.jpg"); data.push("../../res/ui/listskins/5.jpg"); } list.array = data; }   fun...

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

229. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 81%]

...i.UIConfig.packageFileExtension = "json"; Laya.loader.load([     { url: "res/Basics_atlas0.png", type: Laya.Loader.IMAGE },     { url: "res/Basics.json", type: Laya.Loader.BUFFER }     ], Laya.Handler.create(this, this.onLoaded)); }  onLoaded(): void {     console.log('===================ss...

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

230. 性能测试-骨骼 [ 81%]

...r.width / colCount; mSpacingY = Browser.height / rowCount; mTexturePath = "res/skeleton/" + fileName + "/" + fileName + ".png"; mAniPath = "res/skeleton/" + fileName + "/" + fileName + ".sk"; Laya.loader.load([{ url: mTexturePath, type: Loader.IMAGE }, { url: mAniPath, type: Loader.BUFFER }], Handle...

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