大约有 218 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...@regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animato...
来源: Laya3.0_文档 发布时间: 20251010
...d回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed.play(); }运行时发现ui变量不存在...
来源: Laya_社区 发布时间: 20190217
... 'res/atlas/cloud.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...
来源: Laya_社区 发布时间: 20170920
...本Laya.Animator发现play方法的存在BUG 龙骨动画play播放时,this._templet.getAnimationCount()报错? 问题状态 最新活动: 2017-08-15 16:42 浏览: 1827 关注: 2 人 popo • 2017-08-15 16:52 这个设置 下播间隔就好 Monica • 2017-08-15 16:55 @popo:不太清楚具体是...
来源: Laya_社区 发布时间: 20170815
... { // 第一次创建一个动画 if (null == this.mAnimaCur) { this.mAnimaCur = new laya.display.Animation(); this.mAnimaCur.interval = 100; this.addChild(this.mAnimaCur); } var lo...
来源: Laya_社区 发布时间: 20161205
...the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to load this file. at MyScene.__proto.onAsynLoaded (http://127.0.0.1:59022/game/code....
来源: Laya_社区 发布时间: 20180317
... var fullPath = node.fullPath; var keyframeNodeOwner = this._keyframeNodeOwnerMap[fullPath]; let mat = false; if (keyframeNodeOwner) { keyframeNodeOwner.referenceCount++; clipOwners[nodeIndex] = keyframeNodeOwner; ...
来源: Laya_社区 发布时间: 20240517
...ading_fly = function (_super) { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0.85; UIConfig.closeDialogOnSide = false; this.diango = new Laya...
来源: Laya_社区 发布时间: 20171107
...出现动画不动的问题是我代码导致还是就是有这问题呢 this.yzsAni.play(); Laya.stage.addChild(this.yzsAni); 连续调用不同动画的play,经常会出现动画不动的问题是我代码导致还是就是有这问题呢 2017-11-03 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20171103
... = 250; addBtn.y = 50; Laya.stage.addChild(addBtn); DesBtn.on(Event.CLICK, this, onDesBtn); addBtn.on(Event.CLICK, this, onAddBtn); } private function onDesBtn():void { destroy(); } private function onAddBtn():void { startFun(); } public function startFun():void { mAniPath = "Dragon/Dragon.sk"; mFac...
来源: Laya_社区 发布时间: 20170406