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

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

481. layabox 自己制作的UI动画如何播放 [ 78%]

...内容相关的链接 提交 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

482. 3D骨骼动画卡在某一帧不再执行动作 [ 78%]

...下为核心代码:   function playAction(act:string):void {     var animationclip:Laya.AnimationClip = this.animator.getClip(action);     if(animationclip){        this.animator.play(act);    } }   现象描述:角色正在挂机放技能打怪,当挂机时间过长后,角色...

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

483. 提示资源重复加载 [ 78%]

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

484. 3D动画无法播放 [ 78%]

...        //获取角色动画组件             var ani:Animator=shared.getChildAt(0).getComponentByType(Animator) as Animator;             //监听默认动画完成后播放站立动画             shared.on(Event.COMPLETE,this,onAniComplete,[ani]);   ...

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

485. [LayaAir3]3.1.1 spine 动画透明度有问题 [ 78%]

... 动画混合无效(版本2.6) 骨骼动画播放完后的回调时间 Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? Animator2D该如何判断动画是否已经播放完成? spine在微信小游戏中切换动画无法显示 关于apk打包动画卡的...

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

486. 图集动画没有显示 [ 78%]

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

487. 关于创建动画缓存之后,重复使用的内存疑问 [ 78%]

...后,重复使用的内存疑问 想确认一件事,就是当我使用animation.loadatlas,或者animation.play之类的函数时,参数中是有一个 cacheName,允许将下载解析过的动画进行缓存,以便重复使用时解约CPU开销的。 那么对于这个缓存,我想确认...

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

488. box2d引擎报错问题 [ 78%]

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

489. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 78%]

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

490. 蒙皮动画挂点应用 [ 78%]

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