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

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

71. 请教——layabox如何加载多个图集 [ 84%]

请教——layabox如何加载多个图集 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onload)); 这样写只能添加一个图集,我想问有没有办法用一句代码同时添加其他图集 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

72. 预加载图集文集在小游戏端导致内存过高 [ 84%]

...y: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1...

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

73. LayaNative中加载自己缓存的资源 [ 84%]

...片,所以把图片放到了服务器上,但是在app中,使用Laya.loader.load 加载的资源它并不会缓存到本地,每次都要重新下载,有没有什么api是可以手动缓存到本地的?   当前我自己写了一个下载方法,虽然文件保存成功了,但是用Lay...

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

74. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 84%]

ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? onEnable() { //戏控制脚本引用,避免每次获取组件带来不必要的性能开销 thi   s._loveControl = this.getComponent(LoveControl);  //点击提示文字,开始游戏 this.label_start.on(Laya.Ev...

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

75. 淘宝小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 84%]

...在代码中加载分包,是可以加载到分包内的资源的: Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { // ...... }); Laya.loader.load("sub2/Sphere.lh").then((res: Laya.PrefabImpl) => { // ...... }); 4.2 特殊情况下多级目录的分包 有时开发者的分...

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

76. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 84%]

... 柠檬_酸 赞同来自: 今天也遇到了哈,new Texture就行,Laya.loader.load试了还是 不行 var Texture1= new Laya.Texture(); Texture1.load("res/1.png",Laya.Handler.create(this,function(){     this.sprite.graphics.drawTexture(Texture1,0,0,50,50,null,1,"#FFFFF"); })); 2021-09-17 ...

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

77. 资源版本问题 [ 84%]

...create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) } function progress() { (function loading() { Laya.loader.load([{ url...

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

78. 在加载多个资源的时候,加载进度异常 [ 83%]

在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    c...

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

79. sk文件加载 [ 83%]

sk文件加载 package {     import laya.net.Loader;     import laya.net.ResourceVersion;     import laya.utils.Handler;     import view.TestView;     import laya.webgl.WebGL;     import laya.net.URL;     import laya.ani.bone.Skeleton;          public class LayaU...

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

80. QQ小游戏demo跑不起来 MiniFileMgr.fs.readFile无回调 [ 83%]

...sole.log("加载文件测试1", i, fileUrl);         })); 2、Laya.loader.load() 循环多个文件加载测试,均只能加载第一个文件,后续无回调。 3、MiniFileMgr.fs.readFilesync 同步可以读到文件。 4、Main.ts中 交换几个配置文件,均是第一个配置能...

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