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

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

491. 提示资源重复加载 [ 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

492. [LayaAir3]AnimatorState上添加的脚本,打包后会加载不到 [ 78%]

[LayaAir3]AnimatorState上添加的脚本,打包后会加载不到 打包出来的资源格式会变成res://../xxxxxx,造成getClass的时候找不到对应的类。   顺便吐槽一下Animator2D现在没有getControllerLayer函数,不能像Animator一样通过getControllerLayer获取Anima...

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

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

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

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

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

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

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

495. 图集动画没有显示 [ 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

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

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

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

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

498. 【简单跑酷--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

499. 蒙皮动画挂点应用 [ 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

500. unity制作的粒子特效加载失败 [ 78%]

...作的粒子特效加载的时候报错  laya.d3.js:277 Uncaught Error: AnimationClipParser02:unknown property name.     at AnimationClipParser02.READ_ANIMATIONS (laya.d3.js:277)     at Function.AnimationClipParser02.parse (laya.d3.js:222)     at AnimationClip.__proto.onAsynLoaded (laya.d3.js...

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