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

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

91. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

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

92. TimeLineUI不存在的问题 [ 76%]

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

93. 图集动画没有显示 [ 76%]

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

94. DOMException: The play() request was interrupted by a call to pause [ 76%]

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

95. 1.5.4_beta,动画播放完毕的监视器很大概率会不起作用了 [ 76%]

...    {         // 第一次创建一个动画         if (null == this.mAnimaCur)         {             this.mAnimaCur = new laya.display.Animation();             this.mAnimaCur.interval = 100;             this.addChild(this.mAnimaCur);         }         var lo...

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

96. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 76%]

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

97. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 76%]

...      var fullPath = node.fullPath;         var keyframeNodeOwner = this._keyframeNodeOwnerMap[fullPath];         let mat = false;         if (keyframeNodeOwner) {             keyframeNodeOwner.referenceCount++;             clipOwners[nodeIndex] = keyframeNodeOwner;     ...

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

98. ReferenceError: Loading_fly is not defined [ 76%]

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

99. 经常会出现动画不动的问题是我代码导致还是就是有这问题呢 [ 75%]

...出现动画不动的问题是我代码导致还是就是有这问题呢 this.yzsAni.play(); Laya.stage.addChild(this.yzsAni);   连续调用不同动画的play,经常会出现动画不动的问题是我代码导致还是就是有这问题呢   2017-11-03 添加评论 免费帖 --> 分享 微博...

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

100. 分享:销毁龙骨动画! [ 75%]

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