大约有 730 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
Laya_社区(632) Laya2.0_文档(49) Laya3.0_文档(29) laya_api(4) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4)
...化管理这些貌似没有吧! IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 问题状态 最新活动: 2017-04-07 21:39 浏览: 1471 关注: 3 人 cuixueying • 2017-04-07 21:22 如果你单单指一个组件的话,可以做,譬如lis...
来源: Laya_社区 发布时间: 20170407
...0; constructor() { Laya.init(1100, 619, Laya.WebGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage...
来源: Laya_社区 发布时间: 20171108
.../`目录下。动画中用到的资源图集位于`项目根目录/bin/res/atlas/`目录下,如图28所示。 (图28) ### 3.2 在项目中使用时间轴动画 在项目中使用时间轴动画主要分为三步。 第一步:加载动画所需的图集。 ```javascript //加载...
来源: Laya2.0_文档 发布时间: 20210715
... //加载图集 asset.push( { url: NVHAIDAOMAO_JSON_URL, type: Laya.Loader.ATLAS }, { url: WAR_JSON_URL, type: Laya.Loader.ATLAS } ); Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); // 使用图集 var arr = []; for(var i=1...
来源: Laya_社区 发布时间: 20170326
... var res:Array<any> = [ "res/atlas/heart.atlas", "res/LayaScene_newScen/Conventional/newScen.ls", ]; //设置progress Handler的第4个参数为true,根据加载文件个数获取加载进度 ...
来源: Laya_社区 发布时间: 20201130
...Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: ...
来源: Laya_社区 发布时间: 20170803
...//加载图集成功后,执行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
.../`目录下。动画中用到的资源图集位于`项目根目录/bin/res/atlas/`目录下,如图28所示。 (图28) ### 3.2 在项目中使用时间轴动画 在项目中使用时间轴动画主要分为三步。 第一步:加载动画所需的图集。 ```typescript //加载...
来源: Laya2.0_文档 发布时间: 20210715
...画报错 代码如下: 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
..., (state, responseText) => { this.errors[path] = `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`; if (error) error(path, `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`); this.toLoad--; this.loaded++; }); 附件 : --> 2022-01-22 添加评论 免...
来源: Laya_社区 发布时间: 20220122