大约有 1,310 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1038) Laya2.0_文档(79) Laya3.0_文档(55) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...资源地址使用中括号 )加载 .proto 文件失败: Laya.loader.load(["res/protobuf/user.proto"], Handler.create(this, onAssetsLoaded)); 错误提示如下: [warn]Retry to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto [error]Failed to load: E:/LayaBox/ProtobufLoadTe...
来源: Laya_社区 发布时间: 20161223
...中: //加载图集 asset.push( { url: NVHAIDAOMAO_JSON_URL, type: Laya.Loader.ATLAS }, { url: WAR_JSON_URL, type: Laya.Loader.ATLAS } ); Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); // 使用图集 var arr = []; for(v...
来源: Laya_社区 发布时间: 20170326
...createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.ATLAS }, { url: "view/MyView.json", type: Loader.JSON }, ] Laya.loader.load(assets, Handler.create(this, this.onLoaded)); } private onLoaded():void { this.creat...
来源: Laya_社区 发布时间: 20180113
...lic/Protected All Inherited Externals Only exported Menu Globals "laya/net/LoaderManager" LoaderManager Class LoaderManager LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实例化此类,请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPL...
来源: Laya3.0_api 发布时间: 20231102
...的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.d...
来源: Laya2.0_文档 发布时间: 20210715
...果,官方可有解决方案,以下为示例代码: var sprite= Laya.loader.getRes(this._stlurl) as Laya.Sprite3D; this.skill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play(); 这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在...
来源: Laya_社区 发布时间: 20180425
scene.load 使用loader预加载后,为什么再次用Scene.load会报错,那如果使用Scene.load的话,如何获得加载完成与加载进度的信息 2017-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20170731
...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Properti...
来源: Laya2.0_api 发布时间: 20190513
...不能在native环境下手动载入若干脚本并执行。 ``` Laya.loader.load("http://118.17.23.1:9877/xxx.js", Handler.create(this, onLoad));//as3 ``` 2017-10-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20171025
...第一次没缓存的情况下 动画只会播放一半. 附代码: Laya.loader.load("res/atlas/res.json", Laya.Handler.create(this, onLoaded), Laya.Handler.create(this, onLoading), Laya.Loader.ATLAS); 我是在onLoaded里面用游戏资源的.... 2017-07-01 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20170701