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

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

301. 资源压缩成zip后加载的问题 [ 69%]

...Laya.loader.load("res/aaa.scene", Laya.Handler.create(null, (content)=>{console.log(content)})); Laya.loader.load("res/bbb.json", Laya.Handler.create(null, (content)=>{console.log(content)})); 2019-04-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已...

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

302. Spine骨骼动画点击区域偏移 获取不到width height [ 69%]

...e.play("idle", true);         Laya.stage.addChild(sprite);         console.log(sprite.getBounds());           console.log(sprite.width,sprite.height));      } 附件 : --> ZG.zip 2016-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

303. 请问如何使我的自定义类UIDropBox继承Laya.Sprite? [ 69%]

...his.txt = this.getTextFeild(); this.txt.y = 50; this.txt.text = 'aasassa'; console.log(this.addChild);//undefined console.log(this._super);//undefined this.addChild(this.txt); } Laya.class(UIDropBox, "UIDropBox", Sprite); UIDropBox.prototype = { getTextFeild: function () { var text = new Text(); tex...

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

304. ProgressBar 代码问题 [ 69%]

... new Handler(this, this.onChange); } public changeValue():void{        console.log("change");        if (this.loadingBar.value >= 1){                 this.loadingBar.value = 0;        }             this.loadingBar.value += 0.05;        }        onChange(value: nu...

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

305. ZipFile类用readFile读取文件内容时,整个界面都会卡住 [ 69%]

...hstr('/' + name); if (window["appcache"].updateFile(fid, 0, buf, false)) { console.log("更新缓存文件" + fid + "成功"); } else { console.log("更新缓存文件" + fid + "失败"); } } }); zip.close();//执行这一步时界面恢复正常 2018-12-28 添加评论 免费帖 --> 分享 微博 Q...

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

306. UI-RefreshList [ 69%]

...rollBarIsStopBind(){ return this.scrollBarIsStop; } onListMouse(e, index){ console.log(e.target.name); if (e.type == Event.MOUSE_DOWN) { this.mouseDown = true; //如果单元格已经展开,则先恢复 if (this.itemIsOpen) { this.itemIsOpen = false; this.itemOpenId = -1; Tween.to(this.openedItem,...

来源: Laya2.0_示例 发布时间: 20250223

307. 代码创建精灵监听不到事件? [ 69%]

...r _proto = StorageUILayer.prototype;   _proto.onclick = function(params){ console.log("--------------------------------hhhhhhhhhhh- "); }   ---------------------------------------------------------- 麻烦看下,这个为何监听不到点击的事件呢?会是什么原因可能导致监听不...

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

308. LocalStorage的bug [ 69%]

....removeItem('laya');Storage.support = true;} catch(e){}if(!Storage.support)console.log('LocalStorage is not supprot or browser is private mode.')"); }   改成 public static function init():void { __JS__("try{Storage.items=window.localStorage;Storage.setItem('laya', '1');Storage.removeItem('laya');...

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

309. android native环境,ttfloader加载的字体,设置无效果! [ 69%]

...关的链接 提交 2 个回复 Laya_Yan 赞同来自: Tick 、131*****361 console.log("加载字体");             let ttfloader = new Laya.TTFLoader();             ttfloader.load("font/ubuntu-bold.ttf");              ttfloader.fontName = "ubuntu";             ttfloader.err...

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

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

...游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); });  //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); });  //天猫Logo this.img_TianMao.on(Laya.Event.CLICK,null,f...

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