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

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

291. 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

292. layaAirIDE中如何使用wx等微信基础对象,ide版本1.7.19.1beta [ 69%]

....login({ success: function () { wx.getUserInfo({ success: function (res) { console.log('success', res) }, fail: function (res) { console.log("reject",res) } }) } }); 这段代码里的wx对象,报错如下 "wx is not defined" 2018-07-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

293. timeline 类动作节点回调 [ 69%]

...); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); }少年 没仔细看官方的案例吧 这个Label时间就是每一小节动画都会 触发 同时会告诉你当前是那...

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

294. 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_示例 发布时间: 20240930

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

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

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

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

...游戏 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

297. 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

298. 关于截屏的问题 [ 69%]

...但是报错了,,能帮忙看下怎么处理吗?   代码如下: console.log("onCharge-------------------------1"); if( Laya.Browser.window.conch ) { console.log("onCharge-------------------------2"); Laya.Browser.window.conch.captureScreen(function(arrayBuff,width,height){ console.log("onC...

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

299. 我二进制资源load之后,为什么通过getRes获取不到。 [ 69%]

...ndler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('cfg===',cfg, Laya.Loader.groupMap); } 2018-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

300. [LayaAir3]clickHandler只会执行一次,之后点击不再触发 laya.3.0.9 [ 68%]

...,例如节点被添加到舞台后     onEnable(): void {         console.log("2d gamescene onEnable");                  let btn:Laya.Button = LayaUtil.GetChildByPath(this.owner, "CreatePanel/BtnCreate");                 btn.clickHandler = Laya.Handler.create(this, this.onCl...

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