• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 730 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)

361. 自动布局容器 [ 68%]

...化管理这些貌似没有吧! IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 问题状态 最新活动: 2017-04-07 21:39 浏览: 1471 关注: 3 人 cuixueying • 2017-04-07 21:22 如果你单单指一个组件的话,可以做,譬如lis...

来源: Laya_社区 发布时间: 20170407

362. 请大家帮助优化一下这个抛物线的代码 [ 68%]

...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

363. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 68%]

.../`目录下。动画中用到的资源图集位于`项目根目录/bin/res/atlas/`目录下,如图28所示。 ![28](img/28.png)(图28) ### 3.2 在项目中使用时间轴动画 在项目中使用时间轴动画主要分为三步。 第一步:加载动画所需的图集。 ```javascript //加载...

来源: Laya2.0_文档 发布时间: 20210715

364. 创建图集的问题 [ 68%]

... //加载图集 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

365. Laya.loader.create()真机不能加载3D资源,加载图片和音频可以,打开调试也没问题 [ 68%]

...      var res:Array<any> = [              "res/atlas/heart.atlas",             "res/LayaScene_newScen/Conventional/newScen.ls",         ];          //设置progress Handler的第4个参数为true,根据加载文件个数获取加载进度 ...

来源: Laya_社区 发布时间: 20201130

366. 粒子中引用的图片能合图吗 [ 68%]

...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

367. 使用多个时间轴动画 demo.ani(0,true,'name')失效 [ 67%]

...//加载图集成功后,执行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

368. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 67%]

.../`目录下。动画中用到的资源图集位于`项目根目录/bin/res/atlas/`目录下,如图28所示。 ![28](img/28.png)(图28) ### 3.2 在项目中使用时间轴动画 在项目中使用时间轴动画主要分为三步。 第一步:加载动画所需的图集。 ```typescript //加载...

来源: Laya2.0_文档 发布时间: 20210715

369. 加载时间轴动画报错 [ 67%]

...画报错 代码如下: 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

370. laya.spine.js问题以及spine.core.js问题 [ 67%]

..., (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