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

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

631. 请问下为啥我的LayaNative在运行的时候,一直显示Layaair的动画在0%的进度无法跳过呢 [ 45%]

...ascript" src="zlib.min.js"></script> <script src='Main.max.js' loader='laya'></script> </body> </html> 然后我把MainActivity中的initEngine方法中的设置入口页面方法改成了mPlugin.game_plugin_set_option("gameUrl", "http://stand.alone.version/index_nat...

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

632. LayaAir下如何分包? [ 45%]

...4、开始调用你分包后的js文件,参考上图1所示,使用laya.loader.load对js进行加载,加载完成后,如2所示,使用__JS__('window.eval(data)');翻译成h5后,将json的data数据在window下进行加载。并进行调用。 Desktop2.rar 2016-08-11 1 0 分享 微博 QZON...

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

633. 为什么会出现报错 ani not found:ufo1_down [ 44%]

...添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置...

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

634. 引擎 TiledMap 居然不支持图块翻转 [ 44%]

...450;             this._gridHeight = 450;             this._jsonLoader = null;             this._loader = null;             this._tileSetArray = [];             this._currTileSet = null;             this._completeHandler = null;             this._mapRect = ne...

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

635. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 44%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实...

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

636. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 43%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():...

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

637. 为什么会出现报错 ani not found:ufo1_down [ 42%]

...添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置...

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

638. 多线程Worker · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():v...

来源: Laya3.0_文档 发布时间: 20251010

639. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 42%]

...ya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { cell.setImg(cell.dataSource); }  function onLoaded(): void {      var rankList = new Laya.List();    ...

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

640. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 42%]

...is.getResName(char); let sp: Laya.Sprite = this.getSprite(); let tx = Laya.Loader.getRes(resName); if (!tx) { console.warn(TipConfig.tips.haveNoTheChar, char); } sp.texture = tx; this.chars.push(sp); this.addChild(sp); } this.sortCharsByAlign(this._align); } /** * 水平对齐方式 */ public set al...

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