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

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

81. 将字节数组转为图片 [ 75%]

...yte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

82. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 75%]

...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...

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

83. 使用分包后在,会在编译出的主js文件的199行插入类型描述代码,但编译不过! [ 75%]

...TestA这个类还有没有被定义,因为装载类的地方在在Laya.loader.load之后。   目前要想正确运行只有把199的代码删除,并添加到Laya.loader.load完成事件之后   有没有什么方式可以让编译器不插入 199行的描述代码,交给用户自己去手...

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

84. 导入微信小游戏的时候 [ 75%]

...esInfo.__proto.event (http://127.0.0.1:65353/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:65353/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:65353/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:65353/game/code.js:...

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

85. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 74%]

...加 每张图片都是256*256大小的地图块 this.isShow = true; Laya.loader.load(name,Laya.Handler.create(this,this.drawImg)); }  drawImg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.texture = texture; }  clearImage(): void{ if (this.name != "") { this.isShow = false...

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

86. Laya Air Ide每次启动layaair调试时能否不清除已经下载的缓存? [ 74%]

...调试时能否不清除已经下载的缓存? 在游戏中,我用Laya.loader.load("xxx")从网络上下载了资源,但是每次重启layaair调试时候,我用Laya.loader.getRes("xxx")却显示未定义。请问该怎么处理呢?? 2018-11-30 添加评论 免费帖 --> 分享 微博 QZ...

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

87. 微信小游戏报错 the .lh file root type must be Scene [ 74%]

...) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:62629/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at L...

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

88. IDE动画 添加过程出现图片资源丢失 [ 74%]

...  代码:  var ress=[{url:"res/atlas/games/cxmj/shaizi.json",type:Laya.Loader.ATLAS}];                      Laya.loader.load(ress);                     var Animation = Laya.Animation;                     var dice=new Animation();              ...

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

89. 咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数 [ 74%]

...的,所以不能在下一行代码立刻获取数据,推荐使用Laya.loader.create yinglei999 • 2017-11-17 19:10 1.数据都为零,需要获取的数据需要在资源加载的回调中进行 我不太明白,在Laya.MeshSprite3D.load 这个函数中只有一个参数是具体的地址 而...

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

90. Laya.load在OPPO小游戏端无法加载带有不安全字符的图片网址 [ 74%]

...能找到错误 let _url = "https://lupic.cdn.bcebos.com/2 ... 3B%3B Laya.loader.load(_url, Laya.Handler.create(this, res => { let a = new Laya.Image(_url); Laya.stage.addChild(a); })) 以下是安卓层面输出日志:09-22 11:08:10.811 27895-28111/? D/jswrapper: JS: [WARN]: [warn]Retry to loa...

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