大约有 220 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0063 秒)
...ya.stage.bgColor = "#232628"; Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); })(); function createAnimation() { var ani = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.in...
来源: Laya_示例 发布时间: 20260106
...Res("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh") as Laya.Sprite3D; this.scene.addChild(monkey); //获取角色动画组件 var ani = monkey.getChildAt(0).getComponent(Laya.Animator) as Laya.Animator; //创建一个动画动作状态 var state1 = new Laya.AnimatorState(); //设置动作状态...
来源: Laya2.0_文档 发布时间: 20210715
...= Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); this.scene.addChild(monkey); //获取角色动画组件 var ani = monkey.getChildAt(0).getComponent(Laya.Animator); //创建一个动画动作状态 var state1 = new Laya.AnimatorState(); //设置动作状态的名称 state1....
来源: Laya2.0_文档 发布时间: 20210715
...ero_fly1.png", "fj/hero_fly2.png"], "hero_fly");//创建飞机飞行缓存 this.LeadBody = new Laya.Animation(); this.LeadBody.play("hero_fly");//播放动画 this.bound = this.LeadBody.getBounds(); this.LeadBody.pos(-this.bound.width/2,-this.bound.height/2);//设置动画位置 Laya.stage.addChild(...
来源: Laya_社区 发布时间: 20180303
..."; roleAni = new Animation(); Laya.loader.load(AniConfPath, Handler.create(this, onLoaded), null, Loader.ATLAS); } private function onLoaded(_e:*=null):void { Animation.createFrames(aniUrls("die",6),"dizziness"); roleAni.play(0,true,"dizziness"); Laya.stage.addChild(roleAni); } /** * 创建一组动...
来源: Laya2.0_文档 发布时间: 20210715
...t还有loop参数,控制台就会报错,但是动画能正常播放。 this.ani.play(0,true,'XiuXian');控制台报错:ani not found: BlueEmoji.ani#XiuXian。但是游戏中动画正常播放了~~不知道是不是我那里姿势不对。但是如果this.ani.play('Normal'); Normal是默认动...
来源: Laya_社区 发布时间: 20180204
...源路径数组 */ private loadedClips: string[] = []; onEnable(): void { this._animator = this.owner.getComponent<Laya.Animator2D>(Laya.Animator2D); // 1. 创建 Laya.Animation 并挂到角色节点 this.iceMonsterAni = new Laya.Animation(); this.owner.addChild(this.iceMonsterAni); this.iceMo...
来源: Laya_社区 发布时间: 20251211
.../LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 40, 70); }); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop...
来源: Laya_示例 发布时间: 20260106
.../LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); var _quaternion = new La...
来源: Laya_示例 发布时间: 20260106
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.init(); } init() { const Sprite = Laya.Sprite, Animation = Laya.Animation, Text = Laya.Text, Event = Laya.Event; // 创建背景 this.spBg = Sprite.fromImage(PathBg); Laya.stage.addChild(this.spBg); // 创建动画 this....
来源: Laya2.0_示例 发布时间: 20260106