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

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

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

...his.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事件") }) // console.log(this.getGold) } } new Main() Laya_Aaron • 2017-12-13 17:09 getGold...

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

1402. ColorFilter 清除时会出错 [ 71%]

...  0, 0, 0, 1, 0];             var grayscaleFilter:ColorFilter = new ColorFilter(grayscaleMat);             this.filters = [grayscaleFilter];   2、按键松开时,清除这个颜色变化,      this.filters = null;   按键的位置莫名其妙的移到屏幕正中间?...

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

1403. 2.0里面Texture2D.load方法怎么用 [ 71%]

...要回复问题请先登录 发起人 133*****047 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 请问有没有方法能够获取“鼠标是否处于按下状态”? LayaNative ios上js访问不到JSBridge类中的方法,请求...

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

1404. 物理引擎-布 [ 71%]

...ge.on("resize", this, onResize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, container: gameWorl...

来源: Laya_示例 发布时间: 20260303

1405. 发布选压缩JS后,泛型方法报错 [ 71%]

...正常运行。 World 类里的 GetGlobal<T extends Component>(C: new () => T):T 附件里有demo 去掉了图片资源。 附件 : --> 2019-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 SE7EN ...

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

1406. List翻页效果 [ 71%]

...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_社区 发布时间: 20171202

1407. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 71%]

...: Sprite { var w: number = 110; var h: number = 40;  var button: Sprite = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; }  //private musicS...

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

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

... 在源码中未声明以下变量,Dialog 页面正常弹出var dialog = new Dialog(); dialog.show(); 2018-01-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: https://ask.layabox.com/question...

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

1409. 关于Matter的初始化问题 [ 71%]

...function createContainer(render) { var con = render.container; spriteCon = new Laya.Sprite(); graphicsCon = new Laya.Sprite(); render.spriteContainer = spriteCon; render.graphicsContainer = graphicsCon; con.addChild(spriteCon); con.addChild(graphicsCon); graphics = graphicsCon.graphics; } 现在con...

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

1410. 我新手啊,求解答,不能用Dialog上的popup/show/close等方法 [ 71%]

...alog上的popup/show/close等方法 遇到小问题,我的Dialog窗口,new了一个实例,不能用Dialog上的popup/show/close等方法 附件 : --> 2018-10-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复...

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