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

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

171. LayaAirIDE新建Box可以吗? [ 80%]

...ox组件是基于一个View的,也就是我要使用的时候,必须先new这个View,才能访问里面的box组件,而不能直接new 这个Box,我想了解一下,有没有更优的方法,或者能不能在IDE里面加入创建Box这个选项。 最后,代码的方式肯定可以,...

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

172. image._nativeObj报错 [ 80%]

...码,就只有Graphics的构造函数里面会有这个 _this_._nativeObj=new (window as Object)._conchGraphics(); 貌似没有new成功,麻烦帮忙看看什么情况会导致new失败呢   LayaAir版本:1.7.14beta LayaNative版本:0.9.13 附件 : --> 2018-01-31 添加评论 免费帖 --> ...

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

173. List翻页效果怎么实现 [ 80%]

...uper(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { super.onOpene...

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

174. 请问UI之间的场景切换要怎么写 [ 80%]

...his,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool.recover("sg_sign",Laya.sg_sign); Laya.sg_index = new sg_index(); Laya.stage.addChild(Laya.sg_index); } 这样写...

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

175. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 80%]

...this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将pane...

来源: Laya2.0_文档 发布时间: 20210715

176. 缓动-缓动函数演示 [ 80%]

...ontroller(); } createCharacter() { const Sprite = Laya.Sprite; character = new Sprite(); Laya.stage.addChild(character); character.loadImage("res/cartoonCharacters/1.png"); character.pos(100, 50); } createEaseFunctionList() { const List = Laya.List, Handler = Laya.Handler; let easeFunctionsList = ne...

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

177. as3分包,如果在ui编辑器IDE里导入了类runtime,在分包里就会报错。这个怎么处理。 [ 80%]

...n.View (Nxsg.max.js:62736)     at MailWinUI (Nxsg.max.js:71304)     at new MailWin (eval at __proto.loadJs (Nxsg.max.js:52044), <anonymous>:10904:20)     at MailLockWin.__proto.setWin (Nxsg.max.js:52913)     at new MailLockWin (eval at __proto.loadJs (Nxsg.max.js:52044), <anonymous&...

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

178. 使用发光滤镜后的第一个遮罩效果无效 [ 80%]

...第一个遮罩没有效果 。LAYA版本是   2.13.0  var glowFilter = new Laya.GlowFilter("#ffff00", 10, 0, 0);        this.btnLoad.displayObject.filters = [glowFilter];         var ui_hpBarMask = new Laya.Sprite();         ui_hpBarMask.graphics.clear();         ui_h...

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

179. 微信小游戏利用开放域好友关系链做排行榜 [ 80%]

...d:1,             text: 'hello',             year: (new Date()).getFullYear()         },null,function(message){             let wx = Laya.Browser.window.wx;             let openDataContext = wx.getOpenDataContext();              var...

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

180. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 80%]

...uper(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { super.onOpene...

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