大约有 383 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0040 秒)
Laya_社区(319) Laya2.0_文档(40) Laya3.0_文档(12) Laya2.0_示例(4) Laya_示例(4) Laya3.0_api(2) Laya2.0_api(2)
...源后增加了Hash后缀,比如某个文件发布后: release\web\res\atlas\ui\sharedcp094faf36.png 加上了094faf36的后缀 然后我启动游戏的流程如下: ResourceVersion.enable( "version.json?" + Math.random(), Handler.create(this, this.onVersonLoaded)); 然而发...
来源: Laya_社区 发布时间: 20180115
...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
...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
...单机制。如下例所示: 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
...。如下例所示: ```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
... { 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
...ing 赞同来自: 项目示例代码如下 ani=new Animation(); ani.loadAtlas("res/atlas/atlasLight.json",null,"play"); ani.play(); Laya.stage.addChild(ani); 有的开发者会发现,如果loadAtlas方法使用了模板名称,使用Loader.clearRes无法彻底清理掉animation的所有缓...
来源: Laya_社区 发布时间: 20161129
...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
...效果的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
...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