大约有 71 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0037 秒)
...xueying 赞同来自: 项目示例代码如下 ani=new Animation(); ani.loadAtlas("res/atlas/atlasLight.json",null,"play"); ani.play(); Laya.stage.addChild(ani); 有的开发者会发现,如果loadAtlas方法使用了模板名称,使用Loader.clearRes无法彻底清理掉animation的所有...
来源: Laya_社区 发布时间: 20161129
...) #### 2.2 加载动画图集资源 通过`laya.display.Animation`类的`loadAtlas()`方法加载角色的图集动画资源,该方法的基础说明如图4所示。 ![图4](img/4.png)(图4) ##### 示例代码: 创建入口类AtlasAniDemo.js,并编写代码如下: ```javascript //初...
来源: Laya2.0_文档 发布时间: 20210715
...么 xiahaijiao • 2018-03-07 20:02 播放图集的时候,我知道, loadAtlas;请问异步加载多个图集是什么意思?是把完整的动画分成三份,第一段播放完成,播放第二段。第一段播放完的监听我知道,这个时候第二段才去loadAtlas,会不会...
来源: Laya_社区 发布时间: 20180307
...) #### 2.2 加载动画图集资源 通过`laya.display.Animation`类的`loadAtlas()`方法加载角色的图集动画资源,该方法的基础说明如图4所示。 ![图4](img/4.png)(图4) ##### 示例代码: 创建入口类AtlasAniDemo.ts,并编写代码如下: ```typescript // 程...
来源: Laya2.0_文档 发布时间: 20210715
...ask = mask; const ani = new Laya.Animation(); container.addChild(ani); ani.loadAtlas('1.json'); ani.play(); ani.pos(300,0); const d1 = 484; const d2 = 1438; const d3 = 950; const d4 = 1920; const container2 = new Laya.Sprite(); Laya.stage.addChild(container2); const mask2 = new Laya.Sprite(); mask2....
来源: Laya_社区 发布时间: 20170915
...laya.ani.js 还有个问题,引擎示例中的图集动画Animation,用loadAtlas加载了json文件,动画正常播放了。 但是中间getGraphicBounds()或者getBounds()获取不到动画的宽度高度, 求前辈指点下,谢谢! 代码如下: //private strAniConfPath:string = &quo...
来源: Laya_社区 发布时间: 20181023
...ild(this.spBg); // 创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.stage.addChild(this.aniFly); // 创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, this.btn.width, this.btn.height, "#0...
来源: Laya2.0_示例 发布时间: 20240929
...hild(this.spBg); //创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(this.PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.stage.addChild(this.aniFly); //创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, this.btn.width, this.btn.height,...
来源: Laya_示例 发布时间: 20240929
...就是定时切换Graphics对象。 使用set source、loadImages(...)、loadAtlas(...)、loadAnimation(...)方法可以创建动画模版。使用play(...)可以播放指定动画。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Num...
来源: laya_api 发布时间: 20170929
...就是定时切换Graphics对象。 使用set source、loadImages(...)、loadAtlas(...)、loadAnimation(...)方法可以创建动画模版。使用play(...)可以播放指定动画。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Bo...
来源: Laya2.0_api 发布时间: 20190513