大约有 1,300 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(1024) Laya2.0_文档(79) Laya3.0_文档(59) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...ev-loca ... 483:28) 02-06 14:59:43.858 6545 6658 I LayaBox : at LoaderManager.__proto._endLoad (http://10.0.1.72/game/dev-loca ... 070:11) 02-06 14:59:43.858 6545 6658 I LayaBox : at Loader.onLoaded (http://10.0.1.72/game/dev-local/res/libs/laya layabox 版本: 02-06 14:56:40...
来源: Laya_社区 发布时间: 20180206
...; } }); (function loadUI() { var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "正常模式")); ...
来源: Laya_社区 发布时间: 20171127
...,bitmap被销毁以后cache。将recoverBitmap修改cache住,然后将Loader中的textureMap加进来就可以了。 还要吐槽一句,为什么不在公告上说出来?我翻了所有的更新记录没有看到相关的,但是代码里却改了,真的服气。
来源: Laya_社区 发布时间: 20191105
如何给loadprogress传参数? Laya.loader.load(myurl,Laya.Handler.create(this,this.loadComplete),Laya.Handler.create(this,this.loadprogress,["param"])); /** * 加载进度 */ private loadprogress(data:Array<any>):void{ console.log("加载进度: " + data);//加载进度: param }Laya.Handl...
来源: Laya_社区 发布时间: 20170221
...scaleMode = Laya.Stage.SCALE_NOSCALE; // Laya.stage.size(6000, 6000); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(spr...
来源: Laya_社区 发布时间: 20170803
...自: LayaAir 3.3.0-beta.4 可以传递参数 代码如下 Laya.loader.load(config.url, Laya.Loader.HIERARCHY).then((res: any) => { let view: Laya.Scene = res.create(); view.open(false, ...param); })这边能正常输出...
来源: Laya_社区 发布时间: 20250609
2.0.2使用worker加载图片的问题 Laya.loader.load加载图片时,如果使用worker加载,会调用到loadImage方法,然后执行这句话`this.worker.postMessage(url);`,然后 在worker.js中执行了这句话`onmessage=function(t){var e=t.data;switch(e.type){case"load":loadImage2(e...
来源: Laya_社区 发布时间: 20190605
...nction LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResCompl...
来源: Laya_社区 发布时间: 20170228
... 我加载几十张图片,图片在外网服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) ...
来源: Laya_社区 发布时间: 20180808
...ookAt的用法 Texture图片能否进行翻转? Laya.URL.basePath与Laya.loader.load用法 请问关于遮罩的用法,在哪块可以找到? 编辑器下HtmlDIVElement属性能否支持style选项设置 请问下layaflash能否支持热更新? Laya.loader.clearTextureRes引起的内存泄...
来源: Laya_社区 发布时间: 20170419