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

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

91. List滚动条问题 [ 73%]

...t item里的button图片显示不出来   item代码如下: (function (_super){ function MarketItem() { MarketItem.__super.call(this); this.size(312, 462); // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiao...

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

92. 怎样获取父类? [ 73%]

...法,如何获取到上面那个父类呢? var TipsView = (function (_super){ function TipsView(params) { TipsView.super(this); this.sure.on(Laya.Event.MOUSE_UP,this,onSure); function onSure(params) { } } Laya.class(TipsView,"TipsView",TipsViewUI); return TipsView; })();   2017-10-17 添加评...

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

93. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...ivate translate: Laya.Vector3 = new Laya.Vector3(1, 1, 1); constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { // 平移cube this.cube.transform.translate(this.translate, false); } } 效果如图1-1...

来源: Laya3.0_文档 发布时间: 20251010

94. UI界面发布后的layaUI.max.all.ts文件里的函数认识 [ 73%]

...界面发布后的layaUI.max.all.ts文件里的函数认识 constructor(){ super()}和 createChildren():void { super.createChildren(); this.createView(ui.login.HeadUI.uiView); } 是先执行constructor()再执行createChildren()吗?constructor()相当于构造函数,createChildren()是构造完...

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

95. 【简单跑酷--JS版】---Lv.3 添加地板 [ 72%]

...添加东西  (function(){ /** * 地板类 */ function Floor(){ Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.fram...

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

96. 一个场景,两个线形碰撞体,出错 [ 72%]

...is.label = (this.label || "ChainCollider");             return super.getDef();         }   改成这样既可 2018-11-19 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 下个版本修复,    chaincollider的  方法    override protected function getDef():* {  ...

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

97. 微信飞机大战报错 [ 72%]

...(_stream_readable.js:[...]   GameInfo.js代码: var GameInfo = (function(_super){     function GameInfo(){         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(GameInfo, "GameInfo", _super)...

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

98. laya中js 如何实现Sprite类继承 [ 71%]

...his.Role.pos(100, 200);   Role.js基础代码: var Role = ( function ( _super ) { function Role () { Role._super.call(this); /***一些基础信息***/ } Laya.class( Role , "Role" , Sprite ); var _proto_ = Role.prototype; /******/ return Role; })(); 2018-10-12 添加评论 免费帖 --> 分享 ...

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

99. LayaAir下如何分包? [ 71%]

...S:ForcedCompile]*/ yinzhigang12 • 2017-05-27 09:37 坑爹啊,少了个 super(); sawitch • 2017-06-12 11:43 @yinzhigang12:哪里加super();呀?我的分包也遇到这个问题,测试demo包运行没问题,我新建的项目就不行 aubrey0622 • 2017-09-09 10:27 @yinzhigang12:哪里加...

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

100. 创建laya的视图销毁destroy()清除不了 [ 71%]

...ends laya.display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,怎么销毁,...

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