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

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

61. 1.7.15 IDE资源发布有bug [ 80%]

...? Monica • 2018-02-06 19:11 1.7.15发布出来的图集类型默认是.atlas的,1.7.13版本应该是.json格式的,所以如果你用1.7.15版本的话需要把项目中预加载资源的类型改为.atlas fightjjj • 2018-02-07 15:35 是图集后缀的问题,{ url: "res/atlas/baseu...

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

62. 最新的ResourceVersion发布以后加载的url不正确 [ 80%]

...源后增加了Hash后缀,比如某个文件发布后: release\web\res\atlas\ui\sharedcp094faf36.png 加上了094faf36的后缀   然后我启动游戏的流程如下: ResourceVersion.enable(     "version.json?" + Math.random(),     Handler.create(this, this.onVersonLoaded));   然而发...

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

63. Laya.loader Progress回调形同虚设 [ 79%]

...this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded),Handler.create(this, onProgress)); } private function onProgress(v:Number):void { trace("onProgress",v); }    不管添加多少资源,onProgress都只会调用一次  ...

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

64. 异步加载一个UI对象时的问题 [ 79%]

...createChildren():void { super.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)); } privat...

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

65. 关于laya打包找不到配置 [ 79%]

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

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

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

... { 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.onLoaded), Laya.Handler.create(this, this.onLoading)); } static aaa(): void { } private onL...

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

67. Animation模板动画的移除 [ 79%]

...ing 赞同来自:   项目示例代码如下 ani=new Animation(); ani.loadAtlas("res/atlas/atlasLight.json",null,"play"); ani.play(); Laya.stage.addChild(ani);  有的开发者会发现,如果loadAtlas方法使用了模板名称,使用Loader.clearRes无法彻底清理掉animation的所有缓...

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

68. 微信小游戏图片加载不出来 [ 79%]

...r.IMAGE }, { url: "ui/BG/load.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }, { url: "res/atlas/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handl...

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

69. Animation创建和销毁的问题 [ 79%]

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

70. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 79%]

...效果的UI页面,会在`src/ui`目录下生成UI类,以及`bin/h5/res/atlas`目录下的图集文件,如图9所示。 ![图9](img/9.jpg) (图9) ### 4.2 使用IDE生成的类与图集,实现遮罩效果   创建一个入口类`Main.as`,编码如下: ```java package { import laya....

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