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

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

31. 动画多层混合(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 92%]

...。 ```typescript //在混合模式的按钮监听事件中改变播放层 this.blendType++; //在切换动作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为...

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

32. 动画多层混合(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 92%]

...。 ```typescript //在混合模式的按钮监听事件中改变播放层 this.blendType++; //在切换动作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为...

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

33. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 91%]

...ructor() { Laya.WebGL.enable(); Laya.init(1000, 900); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { con...

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

34. laya animation播放图片集合,切换时会闪烁一下 [ 91%]

...: private createAnimation(images: Array<string>): Laya.Animation { this.animation = new Laya.Animation(); this.ui.addChild(this.animation); this.animation.loadImages(images); this.animation.interval = 70; this.animation.play(0); return  this.animation } 我不知道你是怎么做的。这...

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

35. 微信小游戏图片加载不出来 [ 90%]

...pe: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handler.create(this, this.onLoaded)); 在微信小游戏里面可以显示,但是实体机子上就无法显示"ui/BG/play-bg.png"这一张图,其他图...

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

36. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 90%]

...res/spineboy-pma.skel", Loader.SPINE).then((templet: SpineTemplet) => { this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya...

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

37. 动画实例在调用含有名字参数的时候获取不到边界 [ 90%]

...e.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; } onEnable(){ this.playerUnit = []; this.enemyUnit = []; this.playerUnit.push(new Laya.Animation()); this.enemyUnit.push(new Laya.Animation()); this.loadUnit(); } loadUnit(){ for(let i of this.playerUnit ){ i.loadAtlas("./character/m1...

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

38. 播放声音的时候,经常弹this._audio.play();就是官方提供的演示中的,将红框的播放移到前面自动播放就会出现。 [ 89%]

播放声音的时候,经常弹this._audio.play();就是官方提供的演示中的,将红框的播放移到前面自动播放就会出现。 也不是说报错,就是经常一编译就弹这里,搞得每次都要按F8,是不是我哪里错了啊,就是失去焦点的时候会这样。 就是...

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

39. ui编辑器中使用龙骨动画问题 [ 89%]

...画问题 在UI编辑其中直接拖入一个龙骨动画F12导出,调用this.guge.play(1,true)运行会报错,如果不调用this.guge.play(1,true)方法会执行默认动作,添加上就会报错,见下图 最后各种尝试,折腾好久发现好像是,调用代码调用this。guge。p...

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

40. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 89%]

... onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya.stage.ad...

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