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

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

111. Tab组件如何通过js控制选中 [ 67%]

...没有问题,但是无法更改 class Tab extends TabUI{ constructor() { super() this.zOrder = 1 console.log(this._tab._selectedIndex) //返回1,正常 this._tab._selectedIndex = 0 } } xdkaka • 2017-12-14 17:40 发布肯定是已经发布了的。。。。看了下tabUI的函数也是正常的...

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

112. 销毁有声音的spine动画,skeleton中的_onAniSoundStoped有时会报undefined错误 [ 67%]

...*停止播放     */     __proto.stop=function(){         _super.prototype.stop.call(this);         /**     *停止播放。     */     __proto.stop=function(){         if (this.completeHandler)this.completeHandler.run();     } 猜测bug原因如下:...

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

113. 发光滤镜二次渲染bug [ 67%]

...      }                 }             }             super._setDisplay(value);         }   而二次渲染时使用了这个值; tIsHaveGlowFilter = sprite._cacheStyle.hasGlowFilter || false;                 if (tIsHaveGlowFilter) {                     ...

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

114. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 67%]

...pt export default class SceneScript extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); }...

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

115. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 67%]

...次数 如果想三连跳 改成 3 即可 this.jumpCountMax = 2; Player.__super.call(this); this.init(); } //玩家动作 //跑 Player.RUN = "player_run"; //飞 Player.FLY = "player_fly"; //暂时没有用到的动作 Player.HERT = "player_hert"; //跳 Player.JUMP = "player_jump"; //状态 Player.DI...

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

116. 获取的ui页面里下on事件无法触发 [ 67%]

...触发 类代码如下: var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出...

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

117. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 67%]

...Laya.Script3D { //用于表现的方法 public showMsgFunc; constructor(){ super(); } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们...

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

118. ts项目 模块问题 [ 66%]

.../b文件 export default class player extends Laya.Sprite { constructor() { super(); this.pivot(this.width / 2, this.height / 2); this.graphics.drawRect(0, 0, this._size, this._size, this._color); } }   //a文件 import player from './player'; // 程序入口 class GameMain { constructor() { Laya.in...

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

119. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 66%]

...te m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler =...

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

120. Animation未释放资源的引用 [ 66%]

... 先上源码 destroy(destroyChild: boolean = true): void { this.stop(); super.destroy(destroyChild); this._frames = null; this._labels = null; }animation的destory方法,只是将_frames赋值为null,并没有对_frames的graphics进行destroy, 这样会导致动画的图集引用计数不会...

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