大约有 370 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(320) Laya2.0_文档(33) Laya3.0_文档(8) Laya2.0_示例(3) Laya_示例(3) Laya3.0_api(2) Laya2.0_api(1)
...a.Handler.create和new Laya.Handler有啥区别 layaair与layabox的区别 atlas目录下.json文件与.atlas的区别 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件? 请问Laya.loader.load资源缓存在哪里?能不能把...
来源: Laya_社区 发布时间: 20171213
...于2D图集,需要说明一下,我们只支持LayaAirIDE自己生成的atlas图集纹理压缩。第三方的图集,我们并不支持。 LayaAirIDE生成的图集,我们可以在图片路径那一栏,拖入.png后缀图片或.atlas图集文件,都可以被识别,然后压缩成功的...
来源: Laya2.0_文档 发布时间: 20210714
...化管理这些貌似没有吧! IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 问题状态 最新活动: 2017-04-07 21:39 浏览: 1471 关注: 3 人 cuixueying • 2017-04-07 21:22 如果你单单指一个组件的话,可以做,譬如lis...
来源: Laya_社区 发布时间: 20170407
...//加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞...
来源: Laya_社区 发布时间: 20190708
...画报错 代码如下: this.ani = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe)); function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); } 运行时报 TypeError:Cannot read property '...
来源: Laya_社区 发布时间: 20171028
...原因导致的吗? 怎样解决? IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 资源管理器中的图片个别显示不打包,是不是不能打包到图集中了?这个是什么原因造成的呢?如何避免? lineCap不起作用...
来源: Laya_社区 发布时间: 20180423
...; Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS); } } new GameMain(); Test.zip 2018-08-10 0 1 分享 ...
来源: Laya_社区 发布时间: 20180810
...之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetL...
来源: Laya_社区 发布时间: 20180314
...件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢
来源: Laya_社区 发布时间: 20171025
macOS sierra 1.7.9 正式版 无法发布资源 无法发布资源到res/atlas目录 出现如下错误: /Applications/LayaAirIDEMac_1.7.9.app/Contents/Resources/app/out/vs/layaEditor/libs/TP/atlas-generator: Permission denied at ChildProcess.exithandler (child_process.js:223) at emitTwo (events....
来源: Laya_社区 发布时间: 20170829