大约有 509 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
Laya_社区(462) Laya2.0_文档(27) Laya3.0_文档(7) Laya_示例(3) Laya3.0_api(3) Laya2.0_示例(3) laya_api(2) Laya2.0_api(2)
...了一些常用的可能需要压缩的json文件格式(例如:json、atlas、ls、lh、lmat、lav),如果符合这些范围的后缀就会开始压缩。如果有不需要压缩的后缀格式,直接去掉后缀就可以。 #### 是否混淆压缩JS 勾选后,会对JS进行压缩和混...
来源: Laya2.0_文档 发布时间: 20210715
...时,有些 inspector 不知道如何配置使用。 export class SplitAtlasDialog extends IEditor.Dialog { async create() { let panel = IEditor.GUIUtils.createInspectorPanel(); let data = Editor.getSettings("SplitAtlasSetting").data; panel.allowUndo = true; panel.inspect(data, "SplitAtlasSettin...
来源: Laya_社区 发布时间: 20250731
...码如下: Laya.loader.load(this.skPath.replace(".atlas",".png"),Laya.Handler.create(this,function(bit){ var arr = Laya.Loader.getAtlas(this.skPath); arr.forEach(resUrl=>{ v...
来源: Laya_社区 发布时间: 20200317
...了一些常用的可能需要压缩的json文件格式(例如:json、atlas、ls、lh、lmat、lav),如果符合这些范围的后缀就会开始压缩。如果有不需要压缩的后缀格式,直接去掉后缀就可以。 #### 是否混淆压缩JS 勾选后,会对JS进行压缩和混...
来源: Laya2.0_文档 发布时间: 20210715
...不成功吧,毕竟编辑器没提示失败,但是就是没有生产.atlas文件。这是为什么呢?是哪些地方设置有问题呢?我看了其他问答,大多数时间都是在说,重装IDE,要么重装Unity。我个人觉得,你们花时间去回答这些没水准的问题的...
来源: Laya_社区 发布时间: 20171108
...unction () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBirdSing.index = 0; // 当前播放索引 this.aniBirdSing.zOrder = 1; this.aniBirdSing.play(); this.aniBird...
来源: Laya_社区 发布时间: 20171026
... Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 th...
来源: Laya_社区 发布时间: 20170525
...说的是图集的一大张资源。比如图集资源 {goods.png, goods.atlas} 这个图片由a.png ,b.png ,c.png组成。 当我gerRes("a.png")得到纹理对象赋值给albedoTexture, 实际显示出来的效果是goods.png的纹理。 3d精灵对象类型: let plane = new Laya.Me...
来源: Laya_社区 发布时间: 20190710
...,到底想要干嘛??导致的bug就是从本地用户文件夹加载atlas会失败。需要做修改。 2.downFiles函数,这个函数也很迷。如果我手动下载了一个zip包,解压到用户文件夹后设置url.basePath,然后正常调用loader类的,这会又把文件copy...
来源: Laya_社区 发布时间: 20200213
...的时候调用destory销毁地图 tiledMap.createMap("res/atlas/TiledMap/desert.json", viewRect, new Handler(this, completeHandler)); } /** * 地图加载完成的回调 */ function completeHandler() { //设置缩放中心...
来源: Laya_社区 发布时间: 20180614