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

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

51. 输入设备-贪吃蛇(重力感应) [ 62%]

... this.initSnake(); // 监视加速器状态 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, this.animate); // 食物生产 Laya.timer.loop(3000, this, this.produceFood); // 游戏开始时有一个食物 this.produceFood(); } initSn...

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

52. 后台切换到前台的回调 [ 61%]

...复 热心市民小应 赞同来自: 监听舞台的Laya.Event.VISIBILITY_CHANGE,然后通过Laya.stage.isVisibility的值来判断是不是切换到后台了 2019-10-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 colby 相关问题...

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

53. 陀螺仪 IOS [ 61%]

陀螺仪 IOS    Laya.Gyroscope.instance.on(Laya.Event.CHANGE,this,this.onDeviceorientation);   在IOS 下没有调用 onDeviceorientation 这个方法。陀螺仪在苹果上如何处理 2019-08-15 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

54. 求教list中加入VScrollBar的滑动结束问题 [ 60%]

...请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 监听change事件来判断value值 2018-03-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 victoria135 相关问题 发起问题须知,必...

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

55. 键盘焦点事件,切换焦点后焦点事件没有调用 [ 60%]

....focus = MainView; // 给MainView注册了焦点事件,也尝试过FOCUS_CHANGE这个事件,但是在给一个Dialog给焦点 也是通过同样的方法Laya.stage.focus = Dialog; 然后退出弹框后重新使用Laya.stage.focus = MainView;没有产生一次焦点事件,是焦点的给予的...

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

56. UI加载完成后无法获取控件的大小——超详细版问题 [ 59%]

...nt.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { console.log("----------the event resize-------") console.log("ref-resize:", this.myref.getBounds()); console.log("pan-resize", this...

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

57. 侦听加速器运动在ios手机下无法监听 [ 59%]

...运动在ios手机下无法监听 Laya.Accelerator.instance.on(Laya.Event.CHANGE, this, this.monitorAccelerator); 在android手机中是没有问题的,在ios手机无法监听这个事件 附件 : --> 2020-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

58. 新建项目报错,求助 [ 59%]

...编译 -------------------------------------- [19:37:55] Working directory changed to D:\down\html5\soft\laya2.0.0beta4\LayaAirIDE_beta\resources\app [19:37:56] Using gulpfile ~\Documents\Laya2\test3d\.laya\gulpfile.js [19:37:56] Starting 'default'...  出错了: TypeScript error: ../../../node_mod...

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

59. 我调用js方法提示未定义 [ 59%]

...-12-06 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 你都改成change.js了,你还想调用socket.js,他肯定找不到啊,找不到不就是没定义么 2017-12-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加...

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

60. AppStore提审被据 [ 59%]

... App Store because it can lead to a poor user experience should these APIs change. 2018-02-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sailor 相关问题 appstore提审被拒包含私有api ios提审被拒 最近提审小游戏会...

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