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

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

151. renderType设置成instance,单例模式怎么使用的啊 [ 58%]

...关的链接 提交 1 个回复 Laya_Aaron 赞同来自: liwenhua public function GameUI():void {             super();             GameUI.instance = this;                      }   设置单例之后,runtime脚本里面就 指定一下,就ok了,免...

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

152. 为啥我在批量removeself 会报错卡死 [ 58%]

为啥我在批量removeself 会报错卡死 override public function removeSelf():Node { this.scaleX = 1; this.scaleY = 1; this.alpha = 1; this.pos(0,0); this.filters = []; if(selectImg != null) { selectImg.removeSelf(); } this.mouseEnabled = true; if(this.visible == false) { this.visible = true; ...

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

153. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 58%]

...ESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.isZiYu &&am...

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

154. 如何才能生成scene配套的代码 [ 58%]

... { public var scoreLbl:Label; public var tipLbll:Label; override protected function createChildren():void { super.createChildren(); loadScene("test/TestScene"); } } } 2018-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

155. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 58%]

... TypeError: Cannot read property 'call' of undefined 代码: var Test = (function(_surper){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught TypeError: Cannot read property 'call' of...

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

156. ScrollRect设置会引起其他的UI资源无法正在显示 [ 58%]

...rivate var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for...

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

157. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 57%]

...,但是每次都给我翻倍的增加,如何解决 _proto.room_xinxi=function(){ this.roombg=new Laya.Image($mj.Curr_Game_ImagePath + "hall/room_bg.png"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan....

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

158. 我给加载进来的UI界面中一个图片,添加点击更换图片的事件,需要点击两次才能更换图片 [ 57%]

...mage跟skin赋值的操作是不一样的。你这样调整下就行了: function showui() { showui.super(this); var arr2 = new Array(); arr2.push(this.dimg); this.dimg.on(Laya.Event.CLICK, this,apeclick2, arr2); } function apeclick2(that) { console.log("apeclick sucess"); that.skin = "../img/5.jp...

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

159. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 57%]

...信 megrez 赞同来自: // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var Label = Laya.Label; var TextInput = laya.ui.TextInput; var WID = 373, HEI = 30; function Item() { Item.__super.call(this); this.size(WID, HEI); this...

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

160. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 57%]

...刷新,才能恢复原样。   UI界面的继承类 var StartResource = function StartResource(){ StartResource.super(this); //LOGO 图标 访问地址 var href='https://list.tmall.com/search_product.htm?q=%BB%A8%D3%A1%D0%B6%D7%B1%CB%AE&type=p&spm=a220m.1000858.a2227oh.d100&xl=%BB%A8%...

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