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

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

51. 按钮加载皮肤丢失 [ 77%]

...信 匿名用户 赞同来自: 已经预加载了 skins.push( { url:"res/atlas/image1.json", type:Loader.ATLAS} );             skinsSecond.push( { url:"res/atlas/image.json", type:Loader.ATLAS });             skinsSecond.push( { url:"allResources/qfbutton.png", type:Loader.IMAGE })...

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

52. 怎么在api中找到 Laya.loader.load [ 76%]

怎么在api中找到 Laya.loader.load Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,this.onloaded),null,Laya.Loader.ATLAS); 这一句,我想找一下Laya.loader.load的使用说明和使用例子,但是不知道怎么找。在api里我开了Laya。 http://layaair.ldc.layabox.c...

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

53. 按钮交互实现 [ 76%]

...oad(); });当然因为按钮都是小元素, 默认情况下会被打包成atlas文件 需要在代码执行前先下载完毕这个图片集 Laya.loader.create("res/atlas/simbols.atlas",Laya.Handler.create(this,function(){ //创作你的代码 }); 2018-01-16 添加评论 免费帖 --> 分享 微博...

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

54. 百度小游戏的5M本地包与动态资源加载(TypeScript-小游戏适配文档-百度小游戏) [ 75%]

...。如下例所示: ```json BMiniAdpter.nativefiles = [ "wxlocal", "res/atlas/houzi.atlas", "res/atlas/houzi.png", "common/tishi.png", "common/bg.png", "ui.json", "newLb/bg031.png" ]; ``` **只要是BMiniAdpter.nativefiles里存在的目录名或文件,引擎会自动将该目录视为本地目...

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

55. 版本管理什么用 [ 75%]

...rray = [                 { url: Laya.ResourceVersion.manifest["res/atlas/loading.json"], type: Laya.Loader.ATLAS },                 { url: Laya.ResourceVersion.manifest[utils.resourcesCenter.ResourcesPathStr.PROTO_FILE_PATH], type: Laya.Loader.TEXT },             ];  手动修...

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

56. Animation创建和销毁的问题 [ 75%]

...estAnim2.removeSelf(); testAnim2 = null; Loader.clearRes("res/fish_1/stand.atlas", true); Loader.clearRes("res/fish_1/attack.atlas", true); trace("移除动画完成"); } } else if(event.keyCode === Keyboard.A) { //加载动画 Laya.loader.load(["res/fish_1/stand.atlas","res/fish_1/attack.atlas"], H...

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

57. 微信小游戏的4M本地包与动态资源加载(TypeScript-小游戏适配文档-微信小游戏) [ 75%]

...。如下例所示: ```json MiniAdpter.nativefiles = [ "wxlocal", "res/atlas/houzi.atlas", "res/atlas/houzi.png", "common/tishi.png", "common/bg.png", "ui.json", "newLb/bg031.png" ]; ``` **只要是MiniAdpter.nativefiles里存在的目录名或文件,引擎会自动将该目录视为本地目录...

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

58. 严重问题资源销毁不了 [ 75%]

... 我先加载一个图集,然后执行销毁 Laya.loader.clearRes("res/atlas/mainTown.json"); 但内存并没回收,查看代码也执行了销毁过程,但内存就没没减下来。   还有个问题: 如果只是加载资源,不添加到显示对象上,内存是不是不好增加呀 ...

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

59. HTMLIframeElement加载html网页的问题 [ 75%]

.../"; } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }运行会报错:见图:   求...

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

60. 【vivo】2d图集加载不上 [ 74%]

...上 Laya.loader.load(url,Handler.create(this,onLoadComplete),null,Loader.ATLAS); 用Loader.ATLAS图集类型加载失败 附件 : --> myLaya.zip 2019-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 陆仁毅 ...

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