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

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

41. videoNode在安卓上不能播放 [ 65%]

...信 layaAir小孟 赞同来自: 附件如下 demo效果.zip LayaProject14(change).zip 2023-10-09 0 2 分享 微博 QZONE 微信 莱娅 赞同来自: 见这里 测试视频.rar 2023-10-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 莱...

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

42. [0]layaair2-cmd 编译bug [ 63%]

[0]layaair2-cmd 编译bug Working directory changed to /usr/local/lib/node_modules/layaair2-cmd fs.js:27 const { Math, Object } = primordials;                          ^ ReferenceError: primordials is not defined     at fs.js:27:26     at req_ (/usr/local/lib/node_modules/layaair2-...

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

43. 输入设备-指南针 [ 63%]

...建显示角度的文本 createDegreesText(); Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); } function createCompass() { compassImg = new Sprite(); Laya.stage.addChild(compassImg); compassImg.loadImage(compassImgPath); compassImg.pivot(compassImg.width / 2, compassImg.height / 2); ...

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

44. 输入设备-指南针 [ 62%]

...示角度的文本 this.createDegreesText(); Gyroscope.instance.on(Event.CHANGE, this, this.onOrientationChange); } // 方位指示器指向当前所朝方位 createCompass() { const Sprite = Laya.Sprite; compassImg = new Sprite(); Laya.stage.addChild(compassImg); compassImg.loadImage(compassImgPath...

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

45. UI-CheckBox [ 62%]

...ckBox添加事件使其能够切换标签 if (i == 0) { cb.y += 20; cb.on("change", this, this.updateLabel, [cb]); this.updateLabel(cb); } } } } private createCheckBox(skin: string): CheckBox { var cb: CheckBox = new CheckBox(skin); Laya.stage.addChild(cb); cb.labelColors = "white"; cb.labelSize = 2...

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

46. UI-CheckBox [ 62%]

...ckBox添加事件使其能够切换标签 if (i == 0) { cb.y += 20; cb.on("change", this, this.updateLabel, [cb]); this.updateLabel(cb); } } } } private createCheckBox(skin: string): CheckBox { var cb: CheckBox = new CheckBox(skin); Laya.stage.addChild(cb); cb.labelColors = "white"; cb.labelSize = 2...

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

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

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

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

48. slider [ 62%]

slider 请问slider的滑动事件和拖动事件都是这个onChange的方法么,还是说有分开的? 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 都是CHA...

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

49. scroller滚动监听问题 [ 62%]

scroller滚动监听问题 rt   change事件有个changeHandler : Handler end和start好像没有事件,不知道怎么用 现在要监听一个滚动结束,请问怎么做? 很急急急!!! 附件 : --> 2017-10-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

50. 重力感应在手机没有回调问题 [ 62%]

重力感应在手机没有回调问题 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator);   monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) 在PC端调试回调中accelerationIncludingGravity为空,手机扫码调试。次函数不会被...

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