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

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

51. 我二进制资源load之后,为什么通过getRes获取不到。 [ 81%]

...ata.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('cfg===',...

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

52. 多次用Laya.Scene.load加载同名的.ls场景,返回是同一个 [ 81%]

...载场景,注意:不缓存 然而它的实现调用的是 Laya.loader.create(url, null, null, Scene); 但是create的第7个参数,cache默认是true。   也就是说Laya.Scene.load的注释不太对。 不知道是不是这个原因,请官方答疑。 2018-09-07 0 0 分享 微博 QZONE ...

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

53. 二进制文件打包后,读取不到zip包内的文件 [ 81%]

...a.Loader.PLFB }]         Laya.loader.load(loaditem, Laya.Handler.create(this, function (res) {             let item = 'res/layabox.png'             let getres = Laya.loader.getRes(item)             console.log('getres',getres) //这个返回und...

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

54. ts 空项目 版本1.7.20 下的load 调用2次 第二次 失效 [ 81%]

...res/atlas/build.atlas",type:Loader.ATLAS}) Laya.loader.load(assets,Handler.create(this,null),Handler.create(this,this.proces,null,false)); 第一次成功 当我第二次调用失败 资源not found 资源是不同的 2018-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

55. 获取动态更新的文本内容 [ 81%]

...yeimf.txt",type:Laya.Loader.TEXT} ] Laya.loader.load(resArray,Laya.Handler.create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loa...

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

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

...也遇到了这个问题 Texture2D.load("res/env/mountain1_3.png", Handler.create(null, function(tex:Texture2D):void {             menu_sprite_jian.graphics.drawTexture(tex,0,0);             }));这样然后无法drawtexture报同样的错误 但是这个type要如何加上去...

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

57. sk文件加载 [ 81%]

...//激活资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION);         }                  private function beginLoad():void {             //加载引擎需要的资源             /...

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

58. 网络和格式-ProtocolBuffer [ 81%]

...type var AwesomeMessage = root.lookup("awesomepackage.AwesomeMessage"); // Create a new message var message = AwesomeMessage.create( { awesomeField: "AwesomeString" }); // Verify the message if necessary (i.e. when possibly incomplete or invalid) var errMsg = AwesomeMessage.verify(message); if (errM...

来源: Laya_示例 发布时间: 20251130

59. 网络和格式-ProtocolBuffer [ 81%]

...type var AwesomeMessage = root.lookup("awesomepackage.AwesomeMessage"); // Create a new message var message = AwesomeMessage.create( { awesomeField: "AwesomeString" }); // Verify the message if necessary (i.e. when possibly incomplete or invalid) var errMsg = AwesomeMessage.verify(message); if (errM...

来源: Laya2.0_示例 发布时间: 20251130

60. 你们这个API描述错乱了(Laya.loader.create())!!! [ 81%]

你们这个API描述错乱了(Laya.loader.create())!!! 你们这个API描述错乱了(Laya.loader.create()):https://layaair.ldc.layabox.com/api/?category=Core&class=laya.net.LoaderManager#create()     附件 : --> 2017-08-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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