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

大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)

351. l微信开放域无法显示,但是可以正常传数据 [ 75%]

...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

352. Laya.loader.create 加载进度问题 [ 74%]

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

353. 引擎1.7.18 新增Loader的preLoadedMap属性怎么用 [ 74%]

引擎1.7.18 新增Loader的preLoadedMap属性怎么用 引擎1.7.18 新增Loader的preLoadedMap属性在API中没有.请问具体怎么用啊? 有Demo之类的嘛? 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

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

354. 内存优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 74%]

...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, onAssetLoaded), Laya.Handler.create(this, onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,onLoading)`返回的回调方法,是要处理progress加载进度事...

来源: Laya2.0_文档 发布时间: 20210715

355. getPixels中的bug [ 74%]

...g 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 微信6.7.2版本3D显示BUG 微信小游戏兼容性bug 部分机型load场景不显示 image loadimage 加载网...

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

356. Unity导出的特效,缓存后第一次加载能播放,此后再加载不播放的问题 [ 74%]

...缓存后第一次加载能播放,此后再加载不播放的问题 Laya.loader.create缓存加载的 2017-06-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 gy760736077 赞同来自: 还有,即使缓存了....

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

357. 关于新的微信小游戏本地缓存API建议 [ 74%]

..."",callBack:Handler = null,encoding:String = "ascii"):void   和原有loader加载方式产生分裂,导致游戏加载代码不统一,并且不支持传入数组批量下载,当要加载多个文件并缓存的时候会麻烦很多   建议增加设置默认缓存类型的接口,可...

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

358. 在UI类里调用启动类的静态函数失败了 [ 74%]

... 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

359. 微信小游戏怎么加载本地的配置文件 [ 74%]

...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

360. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 74%]

...源的进度进行显示,下面的编码为就是错误的。 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