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

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

21. LayaAir引擎1.7 之后as转换js,出现问题 [ 89%]

...问题 as 代码 override public function get visible():Boolean  { return super.visible; } override public function set visible(value:Boolean):void  { super.visible = value; if (value) _mcAni.removeFromParent(); }   1.7之后的转换 __getset(0,__proto,'visible',function(){ return Laya.superGet(...

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

22. Dialog 关闭效果无效 [ 88%]

Dialog 关闭效果无效 代码如下: var CommonDlg = (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCl...

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

23. 升级引擎到1.7.19.1beta List报错问题 [ 88%]

...aya技术留意下;   解决方案: 需要把_cells和_offset放置到super.call()前 附件 : --> 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: Calvin ok,是编译过去...

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

24. socket无法连接服务器 [ 87%]

...的回调             if (this.connected) return;             super.connect(IP, PORT);         }         ////////////////////////////////////         protected _onOpen(...args: any[]): void {             super._onOpen(args);             this.state_ = EConnectionSt...

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

25. List中如何动态加载多个image,并为每个image添加监听事件? [ 86%]

...多个image,并为每个image添加监听事件? var Index=(function(_super){ function Index(){ Index.super(this); this.data = ["1tong","2tong","3tong","4tong","5tong","6tong","7tong","8tong","9tong","1tiao","2tiao","3tiao","4tiao","5tiao"]; var _dataSource_=[]; for(var i = 0;i<this.data.leng...

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

26. 关于3d项目中component的问题 [ 86%]

...ertTranslate = new Laya.Vector3(0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScript.__super.prototype._initialize.call(this, owner); } CmpScript.prototyp...

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

27. 不能成功调用 DiaLog Close 关闭方法 [ 86%]

...用 DiaLog Close 关闭方法 /** * Start 界面 */ var Start = (function(_super){ function Start(){ Start.super(this); // 注册点击开始事件 this.beginBtn.on(Laya.Event.CLICK,this,this.onBeginClick); // 注册跳转事件 this.linkMsleanBtn.on(Laya.Event.CLICK,this,this.onLinkClick); // 初...

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

28. 关于类中方法的调用 [ 86%]

关于类中方法的调用 var FactionListItem = (function(_super){     function FactionListItem(data) {         FactionListItem.super(this);              this.updateLvAndPeopleCount();         this.updateLvAndPeopleCount = function(){         //-----         }     ...

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

29. 加载UI为什么总是加载白底 [ 86%]

...= new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super(this); } Laya.class(start,"start",_super); //var _proto = Game.prototype; return start; })(ui.startUI) 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

30. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 85%]

...91859396用户 • 2020-06-11 15:11 @Laya_Aaron:var MainSceneUI=(function(_super){ function MainSceneUI(){ this.Btn_Task=null; MainSceneUI.__super.call(this); } CLASS$(MainSceneUI,'ui.MainSceneUI',_super); var __proto__=MainSceneUI.prototype; __proto__.createChildren=function(){ _super.prototype.cre...

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