大约有 283 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0038 秒)
...没有问题,但是无法更改 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
...*停止播放 */ __proto.stop=function(){ _super.prototype.stop.call(this); /** *停止播放。 */ __proto.stop=function(){ if (this.completeHandler)this.completeHandler.run(); } 猜测bug原因如下:...
来源: Laya_社区 发布时间: 20190827
... } } } super._setDisplay(value); } 而二次渲染时使用了这个值; tIsHaveGlowFilter = sprite._cacheStyle.hasGlowFilter || false; if (tIsHaveGlowFilter) { ...
来源: Laya_社区 发布时间: 20210629
...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
...次数 如果想三连跳 改成 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
...触发 类代码如下: 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
...Laya.Script3D { //用于表现的方法 public showMsgFunc; constructor(){ super(); } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们...
来源: Laya2.0_文档 发布时间: 20210715
.../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
...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
... 先上源码 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