大约有 556 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0101 秒)
Laya_社区(515) Laya2.0_文档(17) Laya3.0_文档(14) Laya3.0_api(4) Laya2.0_api(2) laya_api(2) Laya_示例(1) Laya2.0_示例(1)
....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
...内容并返回。如果不需要支持热重载,则忽略。 @Laya.regLoader(["abc"], null, true) export class DemoAssetLoader implements Laya.IResourceLoader { async load(task: Laya.ILoadTask): Promise<any> { let json = await task.loader.fetch(task.url, "json"); let res = task.obsoluteInst...
来源: Laya3.0_文档 发布时间: 20251010
...添加到舞台 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
...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
...tid 1) {422db6b0} 05-16 15:59:48.898 7562-7562/com.dihong.testdcc I/LibraryLoader: Expected native library version number "",actual native library version number "" 05-16 15:59:48.899 7562-7562/com.dihong.testdcc I/chromium: [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, de...
来源: Laya_社区 发布时间: 20190516
...ree/clip_tree_folder.png", "../../res/ui/tree/clip_tree_arrow.png" ]; Laya.loader.load(res, new Handler(this, onLoadComplete)); })(); function onLoadComplete() { // 组装tree的数据 var treeData = ""; for (var i = 0; i "; for (var j = 0; j "; } treeData += ""; } treeData += ""; // 解析tree的...
来源: Laya2.0_文档 发布时间: 20210715
...s/ui/tree/clip_tree_folder.png", "res/ui/tree/clip_tree_arrow.png" ]; Laya.loader.load(res, new Handler(this, this.onLoadComplete)); } private onLoadComplete(): void { // 组装tree的数据 var treeData: string = ""; for (var i: number = 0; i "; for (var j: number = 0; j "; } treeData += ""; } tree...
来源: Laya2.0_文档 发布时间: 20210714
...png", "../../../../res/ui/tree/clip_tree_arrow.png" ]; //加载资源 Laya.loader.load(res, new Handler(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { // 组装tree的数据 var treeData:String = ""; //外层循环为树的父节点(相当于...
来源: Laya2.0_文档 发布时间: 20210715
...ackground looper Looper (main, tid 1) {4a7bba70} I/chromium: [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0 I/BrowserProcessMain: Initializing chromium process, renderers=0 W/chromium: [WARNING:proxy_service.cc(888)] PAC support disabled because there ...
来源: Laya_社区 发布时间: 20171218
...use non-0 exit status 04-11 11:17:09.164 8591-8591/? W/System﹕ ClassLoader referenced unknown path: /system/app/WebViewGoogle/lib/arm 04-11 11:17:09.195 8591-8591/? I/cr_LibraryLoader﹕ Time to load native libraries: 6 ms (timestamps 4139-4145) 04-11 11:17:09.195 8591-8591/? I/cr_L...
来源: Laya_社区 发布时间: 20170411