大约有 3,582 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0099 秒)
Laya_社区(3367) Laya2.0_文档(85) Laya3.0_api(35) Laya_示例(31) Laya2.0_api(20) Laya3.0_文档(18) Laya2.0_示例(14) laya_api(12)
...内容相关的链接 提交 2 个回复 cuixueying 赞同来自: var ani:Animation=new Animation(); ani.loadAnimation("loadingAni.ani"); ani.play(); Laya.stage.addChild(ani); 代码如上,直接shiy使用loadAnimation加载你的ani动画即可 2017-03-17 0 1 分享 微博 QZONE 微信 lcp_li ...
来源: Laya_社区 发布时间: 20170317
...下为核心代码: function playAction(act:string):void { var animationclip:Laya.AnimationClip = this.animator.getClip(action); if(animationclip){ this.animator.play(act); } } 现象描述:角色正在挂机放技能打怪,当挂机时间过长后,角色...
来源: Laya_社区 发布时间: 20180828
... export default class Yard extends Laya.Sprite { private swimpoolani:Laya.Animation; constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ Laya.An...
来源: Laya_社区 发布时间: 20190805
... //获取角色动画组件 var ani:Animator=shared.getChildAt(0).getComponentByType(Animator) as Animator; //监听默认动画完成后播放站立动画 shared.on(Event.COMPLETE,this,onAniComplete,[ani]); ...
来源: Laya_社区 发布时间: 20180118
... 动画混合无效(版本2.6) 骨骼动画播放完后的回调时间 Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? Animator2D该如何判断动画是否已经播放完成? spine在微信小游戏中切换动画无法显示 关于apk打包动画卡的...
来源: Laya_社区 发布时间: 20240306
....json'; Laya.loader.load(AniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.loader.ATLAS); function createAnimation() { var ani = new Laya.Animation(); ani.loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(ani); } 2017-09-20 添加评论 ...
来源: Laya_社区 发布时间: 20170920
...后,重复使用的内存疑问 想确认一件事,就是当我使用animation.loadatlas,或者animation.play之类的函数时,参数中是有一个 cacheName,允许将下载解析过的动画进行缓存,以便重复使用时解约CPU开销的。 那么对于这个缓存,我想确认...
来源: Laya_社区 发布时间: 20180117
...(other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Pool.getItemByCreateFun("deathEffect", this.createEffect, this); effect.pos(this._sp.x, this._sp.y); this._sp.parent.addChild(effect); effect.play(0, false); this.owner.removeSelf(); Laya.Pool.recover("flyCat...
来源: Laya_社区 发布时间: 20191019
....cached = true; //根据不同的动画 来创建动画模板 laya.display.Animation.createFrames(['player/chara_01.png','player/chara_02.png','player/chara_03.png','player/chara_04.png'], Player.RUN); laya.display.Animation.createFrames(['player/chara_05.png','player/chara_06.png','player/chara_07....
来源: Laya_社区 发布时间: 20160801
...): body = role.getChildAt(0).getChildAt(0) as SkinnedMeshSprite3D; // animationNodeTemp.addChild(effect); body.addComponent(SkinAnimations); this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations; this.skinAnimation._initialize(body); // var tempet:AnimationTemplet = new ...
来源: Laya_社区 发布时间: 20170819