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

大约有 334 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0054 秒)

1. 加载的时候动画会卡 [ 100%]

...      var imgArr = ;         imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cpr1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cps1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cpt1.jpg",type:Loader.IMAGE});        ...

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

2. 部分IOS机型在加载mp3音频文件时出错,资源加载异常 [ 99%]

...t; = [             { url: "res/atlas/Images.atlas", type: Laya.Loader.ATLAS },                      { url: "Images/BG_Gray.png", type: Laya.Loader.IMAGE },             { url: "Images/BG_PopWindow.png", type: Laya.Loader.IMAGE },             { ...

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

3. 分享-js资源进度加载 [ 98%]

...gress: Progress; Socket: Socket; arr = [ { url: "images/1.jpg", type: Laya.Loader.IMAGE } , { url: "images/2.jpg", type: Laya.Loader.IMAGE } , { url: "images/3.jpg", type: Laya.Loader.IMAGE } , { url: "images/4.png", type: Laya.Loader.IMAGE } , { url: "images/5.jpg", type: Laya.Loader.IMAGE } , { ur...

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

4. 资源加载 · LayaAir3.0文档 · LAYABOX [ 96%]

...擎的核心模块,是必须要使用的功能,LayaAir引擎提供了Loader类用于加载文本、JSON、二进制、图像等资源。 下面我们在本篇文档中彻底掌握各种资源加载的使用。 一、加载单个资源 1.1 常用资源的加载方式 通常,采用Laya.loader.lo...

来源: Laya3.0_文档 发布时间: 20230728

5. 报无法找到资源,未升级ide之前不报错 [ 96%]

...览: 3508 关注: 3 人 逸辰 • 2023-07-19 22:52 onAwake(): void { Laya.loader.load( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png","resources/UI/images/dsgame/banner2.jpg"] ).then(() =&...

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

6. Laya.loader.load 如何同时加载图片数组以及json图集 [ 95%]

Laya.loader.load 如何同时加载图片数组以及json图集 Laya.loader.load([{url: "res/atlas/images/fesh.json", type: Loader.ATLAS}, {url: "res/atlas/images.json", type: Loader.ATLAS},{url: "res/atlas/common.json", type: Loader.ATLAS}, {url: "res/atlas/template/ButtonTab.json", type: Loader.A...

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

7. JS进度条加载问题 [ 94%]

...function () { Laya.init(720, 1280); var pro1={url:"comp/BG1.jpg",type:Laya.Loader.IMAGE}; var pro2={url:"comp/BG1.jpg",type: Laya.Loader.IMAGE}; var proArr = []; proArr[0]=pro1; proArr[1]=pro2; Laya.loader.load(proArr,Laya.Handler.create(this,onProLoaded)); if(Laya.Browser.onAndriod) { Laya.stage.sc...

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

8. load数组加载如何实现多维? [ 94%]

...载如何实现多维? loadfile = [ {url:"/bin/res/load/b.png",type:Laya.Loader.IMAGE}, {url:"/bin/res/load/a.png",type:Laya.Loader.IMAGE}, {url:"/bin/res/load/b.png",type:Laya.Loader.IMAGE}, {url:"/bin/res/load/a.png",type:Laya.Loader.IMAGE}, {url:"/bin/res/load/b.png",type:Laya.Loader.IMAGE}, {u...

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

9. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 94%]

...总个数去模拟加载进度,示例如下:package { import laya.net.Loader; import laya.ui.ProgressBar; import laya.utils.Handler; public class LoadingDemo { private var progressBar:ProgressBar; public function LoadingDemo() { Laya.init(550,400); //预加载loading条资源 var pro1:Object={ur...

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

10. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 94%]

...Array = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/images.atlas", type: Laya.Loader.ATLAS }, { url: "https://piggy.com/res/swf/flash.json", type: Laya.Loader.JSON }, { url: "images/background.png", type: Laya.Loader.IMAGE }, {...

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