大约有 735 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0059 秒)
Laya_社区(635) Laya2.0_文档(49) Laya3.0_文档(31) laya_api(4) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4)
...单机制。如下例所示: 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
...体结构请参考附件 Laya.loader.load([{url: "res/atlas/flicker/image.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestVi...
来源: Laya_社区 发布时间: 20170608
...ResMgr.ins.clearTextureImg(WindowNpc.ResList);//clearTextureRes方法清理atlas } 这个页面的资源 static ResList: Array<Object> = [ { url: "npc.json", type: Laya.Loader.JSON }, { url: "packatlas/uiatlasnew/talk.atlas", type: Laya.Lo...
来源: Laya_社区 发布时间: 20200915
...es方法获取不到。部分代码如下: var resources = [ { url: "res/atlas/images/guide.atlas", type: Laya.Loader.ATLAS }, { url: "config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, fa...
来源: Laya_社区 发布时间: 20180816
...th; //滚动类型:水平与垂直都滚动 this.panel.vScrollBarSkin = "atlas/comp/vscroll.png"; this.panel.hScrollBarSkin = "atlas/comp/hscroll.png"; this.panel.elasticEnabled = true; //橡皮筋效果 } } 二、通过代码创建Panel组件 Panel组件除了可以直接在UI界面中可视化...
来源: Laya3.0_文档 发布时间: 20251010
...t(600, 400); // 预加载动画需要用到的资源 Laya.loader.load("res/atlas/fly.json", Laya.Handler.create(this, onAssetLoaded), null, Laya.Loader.ATLAS); function onAssetLoaded() { var ani=new Laya.Animation();//创建animation实例 ani.loadAnimation('Ani.ani');//加载IDE制作的动画 Laya...
来源: Laya_社区 发布时间: 20170522
...3.3 存在透明混合的显示差异问题3.4 不要主动加载Spine的atlas和png3.5 3D场景中的坐标转换3.6 快速渲染模式的限制3.7 物理功能的版本要求4、性能优化建议4.1 合理使用快速渲染4.2 适时启用缓存4.3 控制实例数量4.4 优化资源加载Spine3D...
来源: Laya3.0_文档 发布时间: 20260203
...: 星星 loader支持加载Arr序列加载 var altsArr:Array=[ {url:"res/atlas/comp.atlas", type:Loader.ATLAS}, {url:"bitmapFont/timeFont.fnt", type:Loader.FONT}, {url:"bg/hallroom-bg.png", type:Loader.IMAGE}, {url:"bg/hallrom.json", type:Loader.JSON}, ]; Laya.loader.load(altsArr, Handler.create(thi...
来源: Laya_社区 发布时间: 20180518
....7版worker加载图片404 分析代码发现,给worker传入的url变为atlas/comp/button.png 于是worker得到的url是http://localhost:18090/libs/atlas/comp/button.png,所以出现了404正确的url应该是http://localhost:18090/atlas/comp/button.png 附件 : --> Laya3.2_.7bugDemo_.zip 2025...
来源: Laya_社区 发布时间: 20250701
...:45 浏览: 1791 关注: 2 人 k002 • 2018-06-23 11:59 哦,就是加载atlas时需配合代码来进行加载吗 不知道理解是不是正确的 Laya_Aaron • 2018-06-23 12:12 这个asset是放碎图的 ,他发布会自动合成大图。 你说的那个合并好的图和这个自动合成...
来源: Laya_社区 发布时间: 20180622