大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)
Laya_社区(1019) Laya2.0_文档(79) Laya_示例(51) Laya3.0_文档(46) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...main.ts: if(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameC...
来源: Laya_社区 发布时间: 20200314
Laya.loader.create 加载进度问题 我用Laya.loader.create加载.lh模型, function ModelManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = functi...
来源: Laya_社区 发布时间: 20180514
引擎1.7.18 新增Loader的preLoadedMap属性怎么用 引擎1.7.18 新增Loader的preLoadedMap属性在API中没有.请问具体怎么用啊? 有Demo之类的嘛? 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...
来源: Laya_社区 发布时间: 20180524
...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, onAssetLoaded), Laya.Handler.create(this, onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,onLoading)`返回的回调方法,是要处理progress加载进度事...
来源: Laya2.0_文档 发布时间: 20210715
...g 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 微信6.7.2版本3D显示BUG 微信小游戏兼容性bug 部分机型load场景不显示 image loadimage 加载网...
来源: Laya_社区 发布时间: 20190625
...缓存后第一次加载能播放,此后再加载不播放的问题 Laya.loader.create缓存加载的 2017-06-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 gy760736077 赞同来自: 还有,即使缓存了....
来源: Laya_社区 发布时间: 20170614
..."",callBack:Handler = null,encoding:String = "ascii"):void 和原有loader加载方式产生分裂,导致游戏加载代码不统一,并且不支持传入数组批量下载,当要加载多个文件并缓存的时候会麻烦很多 建议增加设置默认缓存类型的接口,可...
来源: Laya_社区 发布时间: 20180312
... constructor() { Laya.init(600, 400); Laya.stage.bgColor = "#123456"; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onL...
来源: Laya_社区 发布时间: 20180507
...nfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; config=laya.net.Loader.getRes("res/config/playerCard.json"); Playe...
来源: Laya_社区 发布时间: 20180117
...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,this.onLoading)`返回的回调方法,是要处理progress...
来源: Laya2.0_文档 发布时间: 20210715