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

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

821. 下来框ComboBox的change事件怎么绑定 [ 60%]

...接 提交 1 个回复 189*****192 赞同来自: box.on(Laya.Event.CHANGE,this,方法名称);    2017-10-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 qq1297404644 相关问题 分享:自定义事件派发与侦听(A页面派...

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

822. worldroot [ 60%]

...0);   Laya.Physics.I.worldRoot = root;   Laya.stage.on(Laya.Event.CLICK, this, () => { Laya.Physics.I.worldRoot.x -= 50; });   设置worldRoot = 一个新的sprite后, 移动world root ,物理世界不会跟着一起移动 2018-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

823. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 60%]

...来自: 么有。这个我给你个demo,你自己看看。 1.初始化 this.Matter.Events.on(this._engine, 'collisionActive', this.onCollision);   2.碰撞检测 private onCollision(event): void { console.log("碰撞了..");  var home = _gamePage._mainPage._playPage;  for(var i = 0; i < even...

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

824. srpite 绑定startDrag事件没有出发 [ 60%]

...发 srpite 绑定startDrag事件没有出发 football.on(Event.MOUSE_DOWN, this, onStartDrag(e)); football 是一个sprite function onStartDrag(e){ alert("拖动事件") } 2017-02-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

825. 2.2.0beta2中,ui使用相对布局时初始化会报错 [ 60%]

...,设置了相对坐标 然后在初始化ui时报错 debug发现是因为this._widget没有值,   和以前的版本对比,是因为this._widget和super()的位置对调了,导致在createChildren()时_widget还没有进行初始化   2.2.0beta2   以前的版本   附件 : --> LayoutTes...

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

826. App Updates for HTML5 Apps 这意味着iOS端就废了? [ 59%]

... Store, we have always specified that apps must be self-contained bundles. This means that the core features and functionality of the app must be contained within the binary of the software, rather than made possible by referring users outside of the approved app, including through the use of HTML5....

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

827. 鼠标点击无效 [ 59%]

...宽高就可以了 roleAni.size(width,height); roleAni.on(Laya.Event.CLICK,this,function): 13995580072 • 2017-11-21 17:24 非常感谢,就是没有宽和高引起的

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

828. 微信小游戏内TextInput不能实现只输数字的功能 [ 59%]

...实现了,虽然笨了点,但还能用 let input = new Laya.TextInput(); this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j+...

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

829. 如何监听键盘组合键 [ 59%]

...接 提交 2 个回复 Laya_XS 赞同来自: Laya.stage.on(Event.KEY_DOWN, this, _onKeyDown); 然后你根据Keyboard对应的keycode来判断是什么键即可 2018-04-06 0 0 分享 微博 QZONE 微信 akunone 赞同来自: laya.events.KeyBoardManager.hasKeyDown(laya.events.Keyboard.CONTROL) 2019-0...

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

830. skeleton 里的label 事件怎么设置的啊 [ 59%]

... 个回复 cuixueying 赞同来自: 直接让你的skeleton.on(Event.LABLE,this,onLabel)去注册监听即可!  2017-03-31 0 0 分享 微博 QZONE 微信 uncle1980 赞同来自: 我是想问这个label 怎么设置在哪一帧触发 不是怎么监听。 2017-04-01 0 0 分享 微博 QZONE 微信 ...

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