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

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

21. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 91%]

...图片加密数据是在图片的前面写入了四个字节的数据 Laya.loader.fetch("resources/res/test.bin","arraybuffer").then((res)=>{ //获得res的ArrayBuffer数据 let arraybuffer: ArrayBuffer = res; //Byte数组接收arraybuffer let byte:Byte = new Byte(arraybuffer); //从第四个字...

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

22. 导出类型为文件模式时,只能是通过Laya.Scene.load的加载返回传递的参数得到视图对象么? [ 91%]

...载返回传递的参数得到视图对象么? 不能加完后,通过 loader.getRes(xxx)的方式通过代码进行实例化出一个新视图对象么? 2018-10-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...

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

23. 资源加载后的 回调 [ 91%]

...的语句加载资源,每次加载完成后回调loadselectanimation Laya.loader.load(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在的问题是,同一个资源第二次加载的时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第...

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

24. 微信小游戏环境下,load的参数ignoreCache设置为true时,并没有重新下载资源 [ 90%]

...11-23 15:27 浏览: 2527 关注: 2 人 刘大明 • 2018-11-21 19:41 Laya.loader.load("https://xxxx/image.png", new Laya.Handler(this, this.imageLoaded), null, Laya.Loader.IMAGE, 0, false, "", true); 代码是这样的,但是这个url的资源覆盖以后,还是不会发生...

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

25. 为什么Laya.loader.load本地加载文件会报这个跨域问题 [ 90%]

为什么Laya.loader.load本地加载文件会报这个跨域问题 如图所示。本地同一个目录下,这怎么叫跨域呢,请问知道是什么原因到导致的吗   非要给浏览器加个启动参数allow-file-access-from-files才行。 附件 : --> 2017-11-11 添加评论 免费...

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

26. layabox如何做资源加密压缩? [ 89%]

...频等。 如果要做资源加密压缩,是否有方便接口? Laya.loader.load带上资源类型,似乎已经直接进入资源逻辑了。 如果加载的是加密资源,如何在loader和资源逻辑之间优雅得插入一个解密逻辑呢? 2017-03-20 添加评论 免费帖 --> 分...

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

27. Laya.Texture2D.load 回调的参数为一堆乱码 [ 87%]

...来的GET参数 如何定义动画播放过某帧后的回调函数 Laya.loader.create 进度回调函数执行两次 怎么停止正在运行Laya.timer.frameLoop的回调函数 点击按钮打开对话框的时候能往对话框中传一个参数吗 对象池对类怎么传参数 IDE中js压缩工...

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

28. Laya.loader.load("", Laya.Handler.create(this, this.console)); [ 86%]

Laya.loader.load("", Laya.Handler.create(this, this.console)); 为什么会打印两次 附件 : --> 2018-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 加载两次 2019-05-11 0 0 ...

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

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

在加载多个资源的时候,加载进度异常 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

30. 加载Loader问题 [ 85%]

加载Loader问题 (node:131140) DeprecationWarning : laya 'Global' is deprecated, use 'global' (node:131140) DeprecationWarning : laya 'root' is deprecated, use 'global' 加载回调回来参数后,为啥我当前那个类里面所有的变量都是 undefined了?还报了这个警告? 2018-0...

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