大约有 341 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
laya接入fairyGUI的时候资源加载方式? Laya.loader.load([{ url: "res/Basics_atlas0.png", type: laya.net.Loader.IMAGE }, { url: "res/Basics.fui", type: laya.net.Loader.BUFFER }, { url: "res/MainMenu_atlas0.png", type: laya.net.Loader.IMAGE }, { url: "res/MainMenu.fu...
来源: Laya_社区 发布时间: 20191107
优化的问题 Loader.clearRes方式清除缓存资源,是不是需要载资源时,又要重新加载,浪费不必要的大量流量;还有就是destroy的实质表现是什么,为什么使用后,内存还是在一直飙升。(知道好几百M) 目前一个项目使用了大量的...
来源: Laya_社区 发布时间: 20170527
自己创建的box作为tab,为啥没有点击事件啊? var Loader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass...
来源: Laya_社区 发布时间: 20160722
...blic/Protected All Inherited Externals Only exported Menu Globals "laya/d3/loaders/CubemapLoader" CubemapLoader Class CubemapLoader Hierarchy CubemapLoader Implements IResourceLoader Index Constructors constructor Methods load Constructors constructor new CubemapLoader(): CubemapLoader Defined in la...
来源: Laya3.0_api 发布时间: 20231115
...pg"}, {url : "res/atlas/games/game_13/image.atlas"} ]; Laya.loader.load(loadArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图集加载完再new一个界面。但是界面里的图片都不显示 thekingret...
来源: Laya_社区 发布时间: 20180327
... Public/Protected All Inherited Externals Only exported Menu Globals "laya/loaders/TextResourceLoader" JsonAssetLoader Class JsonAssetLoader Hierarchy JsonAssetLoader Implements IResourceLoader Index Methods load Methods load load(task: ILoadTask): Promise<TextResource> Implementation of IReso...
来源: Laya3.0_api 发布时间: 20231115
....alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load("assets/bg.jpg", Handler.create(this, loadCompleteHandler)); } private function loadCompleteHandler():void { var bg:Image = new Image("assets/bg.jpg"); Laya.stage.addChild(bg); }这张图在三星平板上可以...
来源: Laya_社区 发布时间: 20171124
Loader 加载一张图片后,可以把这张图片改名字吗 您好,各位大神好。 请问:Loader 加载一张图片后,可以把这张图片改名字吗。 比如:图片图径是res/a.png, 用Loader加载:Laya.loader.load([{url:"res/a.png", type:Laya.Loader.IMAGE}]); 现在...
来源: Laya_社区 发布时间: 20200507
3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true; 加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh"); 报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...
来源: Laya_社区 发布时间: 20190227
...8-03-27 10:33 浏览: 1439 关注: 2 人 seacole • 2018-03-27 11:22 Laya.loader.load([{ url: 'wxlocal/load.json', type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.loadComplete)); 我就是这么调用的,但是load.json这个文件还是去远程拉了。该怎么解? Laya_Aaron • ...
来源: Laya_社区 发布时间: 20180327