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

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

341. 读取json对象 [ 65%]

...           var arr:Array = new Array();             Laya.loader.load("test.json", Handler.create(this, onLoaded), null, Loader.ATLAS);             //var json:JSON = Loader.getRes("test.json");             //trace(json);         }                  ...

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

342. Texture自动恢复还是存在另外的问题 [ 65%]

...itmap || this._bitmap.destroyed)&& url){             Laya.loader.load(url,Handler.create(this,function(bitmap){                 _$this._bitmap=bitmap;             }),null,"htmlimage",1,false,null,true);         }     }   Laya.loader.load的cache参数...

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

343. Cannot read property 'load' of null [ 65%]

...ayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static g...

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

344. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 65%]

...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...

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

345. 怎么加载多个不同的lm模型? [ 65%]

...形式加载。或者传入地址数组。即可加载多个模型   Laya.loader.create([ {url:"资源目录/模型名字.lm"}, {url:"同上.lm"},  {url:"同上"},  {url:"同上"} ],Handler.create(this,onLoaded)); 2018-05-28 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 白夜行 Animat...

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

346. Unity插件与LAYAAIR加载的天空盒子BUG与修改方法 [ 65%]

...   Laya3D._onTextureCubeLtcLoaded Laya3D._onTextureCubeLtcLoaded=function(loader,ltcData){         if (loader._class.destroyed){             loader.endLoad();             }else {             var ltcBasePath=URL.getPath(loader.url);            ...

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

347. canvas下资源清理的问题 [ 65%]

...aya.display.Stage;     import laya.events.Event;     import laya.net.Loader;     import laya.ui.Button;     import laya.utils.Handler;     import laya.utils.Stat;          import ui.TaskUI;          import view.TestView;          public class LayaUISample {      ...

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

348. fairygui 生成的二进制文件在头条界面加载后得到的数据是空的 [ 65%]

...成的二进制文件在头条界面加载后得到的数据是空的 Laya.loader.load([         { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },         { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},         { url:"res/Bag.xml", type:Laya.Loader.BUFFER}          ], Lay...

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

349. 如何清理预加载的图集资源??? [ 65%]

如何清理预加载的图集资源??? 通过 Laya.loader.load("res/atlas/公告.json", Laya.Handler.create(null, onLoad), null, Laya.Loader.ATLAS); 这样加载的图集资源怎么清除掉??? 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

350. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 65%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); } private setup(): void { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); th...

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