• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 341 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)

21. laya接入fairyGUI的时候资源加载方式? [ 82%]

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

22. 优化的问题 [ 82%]

优化的问题 Loader.clearRes方式清除缓存资源,是不是需要载资源时,又要重新加载,浪费不必要的大量流量;还有就是destroy的实质表现是什么,为什么使用后,内存还是在一直飙升。(知道好几百M) 目前一个项目使用了大量的...

来源: Laya_社区 发布时间: 20170527

23. 自己创建的box作为tab,为啥没有点击事件啊? [ 81%]

自己创建的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

24. laya.d3.loaders.CubemapLoader_API3.0 [ 81%]

...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

25. 关于资源加载的问题 [ 81%]

...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

26. laya.loaders.JsonAssetLoader_API3.0 [ 81%]

... 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

27. scaleMode设为full时怎么pc浏览器跟平板上效果不一样? [ 81%]

....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

28. Loader 加载一张图片后,可以把这张图片改名字吗 [ 80%]

Loader 加载一张图片后,可以把这张图片改名字吗 您好,各位大神好。  请问:Loader 加载一张图片后,可以把这张图片改名字吗。 比如:图片图径是res/a.png, 用Loader加载:Laya.loader.load([{url:"res/a.png", type:Laya.Loader.IMAGE}]); 现在...

来源: Laya_社区 发布时间: 20200507

29. 3D开启多线程报错 [ 79%]

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

30. 微信小游戏 wxlocal怎么用 [ 79%]

...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