大约有 217 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0056 秒)
Laya_社区(147) Laya3.0_api(20) Laya2.0_文档(19) Laya3.0_文档(14) Laya2.0_示例(9) Laya_示例(6) laya_api(1) Laya2.0_api(1)
... Laya.Text.registerBitmapFont('Name', timerFont); Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); })); } function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 附...
来源: Laya_社区 发布时间: 20180509
...var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主...
来源: Laya_社区 发布时间: 20180315
...能console出,那个list中的数据也存在,但没渲染出。 Laya.Loader.getRes请教 本地调试加载本地图片都报错 问题状态 最新活动: 2017-06-15 17:04 浏览: 1766 关注: 4 人 189*****192 • 2017-06-16 09:27 http://layaair.ldc.layabox.com/demo/?Filters_Color 我发的...
来源: Laya_社区 发布时间: 20170615
...).png"); } let nt = Date.now(); Laya.loader.load( loadList, Laya.Handler.create(this, () => { var label=this.owner.getChildByName("time") as Laya.Label; label.text=((Date.now(...
来源: Laya_社区 发布时间: 20240628
...) { if (window.navigator.userAgent.indexOf('MiniGame') < 0) { Laya.Laya.loader.load(fileUrl, callBack); } else { if (fileType == Laya.Loader.IMAGE || fileType == Laya.Loader.SOUND) MiniFileMgr.downOtherFiles(fileUrl, callBack, fileUrl, true, false); else MiniFileMgr.downFiles(fileUrl, encoding, c...
来源: Laya_社区 发布时间: 20200103
...01-13 11:36 this.url = comp/lhjicon_5.png" this.cached_texture = Laya.loader.getRes(this.url) // 每次重新绘制的时候 this.graphics.clear() this.graphics.drawTexture(this.cached_texture) // 而不是每一次都 drawcanvas 然后再转成 texture,drawcanvas作用就跟截屏一样 kezh...
来源: Laya_社区 发布时间: 20180113
... //初始化引擎 Laya.init(100,100); var skins:any = ["res/a.png"]; Laya.loader.load(skins,Laya.Handler.create(this,this.onUIAssetsLoaded)); } private onUIAssetsLoaded():void{ var btn:Laya.Button = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮...
来源: Laya3.0_文档 发布时间: 20251010
....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
...nLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); } 上图为在layaIDE中的显示效果。 不知道具体是什么原因,希望...
来源: Laya_社区 发布时间: 20180529
...是在Native就播放不了(Android),也没错误信息;用 Laya.loader.load 也是一样,但是 加载图片没问题,唯独音频不行; 2、Native 端 只能调试js无法查看 打印信息吗? 记录一下: 1、在AndroidStudio 用 logcat看了一下日记,会出...
来源: Laya_社区 发布时间: 20250306