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

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

201. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 65%]

...72:13)     at http://127.0.0.1:53462/game/code.js:97630:17     at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13)     at Handler.__proto.runWith (http://127.0.0.1:53462/game/code.js:711:59)   查看了应该是微信自带的浏览器内核不支持Function.app...

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

202. [LayaAir3]页面之间,通过open,onOpend 方法传参数,接收不到 [ 65%]

...自: LayaAir 3.3.0-beta.4 可以传递参数 代码如下        Laya.loader.load(config.url, Laya.Loader.HIERARCHY).then((res: any) => {                 let view: Laya.Scene = res.create();                 view.open(false, ...param);             })这边能正常输出...

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

203. 微信资源加载问题 [ 64%]

... 我加载几十张图片,图片在外网服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) ...

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

204. exception info:[SyntaxError: JSON Parse error: Expected '}'] at line 22 [ 64%]

...: Error Could not attach to main target 微信小程序里加载json文件 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug spine动画转换失败,加载错误:导出二进制数据出错:writeUint8 error - Out of range261, 有谁知道什...

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

205. 微信小游戏中不能加载proto文件 [ 64%]

...valid url "res/protobuf/Login.proto"   具体代码: (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________")  var ProtoBuf = Browser.window.protobuf;  // Laya.init(550, 400);  ProtoBuf.load("res/proto...

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

206. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 64%]

...";  var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0);  Laya.stage.ad...

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

207. unity里导出的骨骼动画无法读取 [ 64%]

...的插件的参数,你看下有没有错误   读取代码:    Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void         {              //添加3D场景              var scene:Scene = new Scene();  ...

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

208. 怎么没看到有资源加载方面的教程,比如不同场景下的不同资源文件的加载? [ 64%]

..._XS 赞同来自: 你指的是2d的还是3d的加载,2d的加载就是用loaderload方法,3d的就是用Sprite3D的load方法 2017-12-31 0 0 分享 微博 QZONE 微信 ok10000 赞同来自: 怎么没有像egret那样介绍资源加载的教程? 2017-12-31 0 0 分享 微博 QZONE 微信 为...

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

209. 进行预加载,每次进入游戏都会重新加载一次 [ 63%]

...ang + "/shz_nav.png"。。。。。。。】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress, null, false), Laya.Loader.IMAGE); 但是每次进入都会重新慢慢在加载一次 声音也是一样 2017-02-16 添加评论 免费帖 --> 分享 微...

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

210. swf转成H5资源显示超出原有范围 [ 63%]

...看下,谢谢啦,贴上代码。 package {     import flash.display.Loader;     import flash.display.LoaderInfo;     import flash.display.MovieClip;     import flash.display.Sprite;     import flash.display.StageAlign;     import flash.display.StageScaleMode;     import flas...

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