大约有 165 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
Laya_社区(134) Laya2.0_文档(13) Laya2.0_示例(6) Laya_示例(3) Laya3.0_文档(3) laya_api(2) Laya3.0_api(2) Laya2.0_api(2)
...ction clickFun():void { url = "res/CH/atlas/MORNUI_Z_Gongneng.atlas"; Laya.loader.load(url,new Handler(this,hh)); //trace( Laya.loader.getRes(url) ); } private function hh():void { Laya.stage.addChild(new Image("MORNUI_Z_Gongneng/clip_xue_quan.png")); Laya.timer.once(1000,1,ddd); } private function ...
来源: Laya_社区 发布时间: 20171206
skin加载url资源不会刷新 代码如下 Laya.loader.clearRes("http://10.144.1.20:8081/files/ ... 6quot;); var test: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;); Laya.loader.load("http://10.144.1.20:8081/files/ ... ot%3B, Handl...
来源: Laya_社区 发布时间: 20170831
Loader.BUFFER的问题 我现在要下载一个解压包进行解压,采用的是以下语句: Laya.loader.load("config.zip", Laya.Handler.create(this, this.configLoaded,["config.zip"]), null, Laya.Loader.BUFFER, 1, true) private configLoaded(url):void { var data:Object = Laya.loader.get...
来源: Laya_社区 发布时间: 20171218
...下: var resources = [ { url: "res/atlas/images/guide.atlas", type: Laya.Loader.ATLAS }, { url: "config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.lo...
来源: Laya_社区 发布时间: 20180816
...res/3d/Player.zip,则使用方法为[code]// Laya 2.x及以下版本 Laya.loader.create([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code][code]// Laya3.x版本 Laya.loader.load([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code] 加载资源使用:[code]// Laya 2.x及以下版本 let pla...
来源: Laya_社区 发布时间: 20230316
3D资源加载失败问题 一个3D资源 首次用Laya.loader.create 再Laya.loader.getRes加载是成功的,接下来我把这个3D资源所有依赖的资源清理掉,循环destroy clearRes。这时候内存降下来了,然后再去Laya.loader.create 再Laya.loader.getRes加载失败 2018-...
来源: Laya_社区 发布时间: 20180716
...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Properti...
来源: laya_api 发布时间: 20170929
js环境下使用Loader加载图片在Sprite对象的.on函数无效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触...
来源: Laya_社区 发布时间: 20171024
...了 private var oriDBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posObj.h); g.drawTexture(t, 0, 0); ...
来源: Laya_社区 发布时间: 20170224
...要代码如下 let loaditem = [{ url: "test.zip", type: Laya.Loader.PLFB }] Laya.loader.load(loaditem, Laya.Handler.create(this, function (res) { let item = 'res/layabox.png' let getres = Laya.loader.getRes(item...
来源: Laya_社区 发布时间: 20210604