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

大约有 71 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0037 秒)

11. Animation模板动画的移除 [ 75%]

...xueying 赞同来自:   项目示例代码如下 ani=new Animation(); ani.loadAtlas("res/atlas/atlasLight.json",null,"play"); ani.play(); Laya.stage.addChild(ani);  有的开发者会发现,如果loadAtlas方法使用了模板名称,使用Loader.clearRes无法彻底清理掉animation的所有...

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

12. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 75%]

...) #### 2.2 加载动画图集资源 通过`laya.display.Animation`类的`loadAtlas()`方法加载角色的图集动画资源,该方法的基础说明如图4所示。 ![图4](img/4.png)(图4) ##### 示例代码: 创建入口类AtlasAniDemo.js,并编写代码如下: ```javascript //初...

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

13. 200多张1920*1080的图片,想打包,一直不成功 [ 74%]

...么 xiahaijiao • 2018-03-07 20:02 播放图集的时候,我知道, loadAtlas;请问异步加载多个图集是什么意思?是把完整的动画分成三份,第一段播放完成,播放第二段。第一段播放完的监听我知道,这个时候第二段才去loadAtlas,会不会...

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

14. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 74%]

...) #### 2.2 加载动画图集资源 通过`laya.display.Animation`类的`loadAtlas()`方法加载角色的图集动画资源,该方法的基础说明如图4所示。 ![图4](img/4.png)(图4) ##### 示例代码: 创建入口类AtlasAniDemo.ts,并编写代码如下: ```typescript // 程...

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

15. 加了两个遮罩后的动画,帧频只有10了,有demo,有项目,有源码 [ 70%]

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

16. new Laya.Templet() 时,说这不是一个constructor [ 67%]

...laya.ani.js 还有个问题,引擎示例中的图集动画Animation,用loadAtlas加载了json文件,动画正常播放了。 但是中间getGraphicBounds()或者getBounds()获取不到动画的宽度高度, 求前辈指点下,谢谢! 代码如下: //private strAniConfPath:string = &quo...

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

17. 加载-销毁Texture使用的图片资源 [ 67%]

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

18. 加载-销毁Texture使用的图片资源 [ 66%]

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

19. laya.display.Animation [ 65%]

...就是定时切换Graphics对象。 使用set source、loadImages(...)、loadAtlas(...)、loadAnimation(...)方法可以创建动画模版。使用play(...)可以播放指定动画。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Num...

来源: laya_api 发布时间: 20170929

20. laya.display.Animation [ 65%]

...就是定时切换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