大约有 655 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0066 秒)
Laya_社区(599) Laya2.0_文档(19) Laya3.0_文档(12) Laya2.0_示例(8) Laya_示例(8) Laya3.0_api(5) laya_api(2) Laya2.0_api(2)
...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
...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
...添加到舞台 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
...450; this._gridHeight = 450; this._jsonLoader = null; this._loader = null; this._tileSetArray = []; this._currTileSet = null; this._completeHandler = null; this._mapRect = ne...
来源: Laya_社区 发布时间: 20220627
....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
....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
...添加到舞台 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
....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
...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
...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