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

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

41. list的selectHandler属性连续点击同一个item不能重复接收事件 [ 68%]

...         this._selectedIndex=value;             this.changeSelectStatus();             this.event(/*laya.events.Event.CHANGE*/"change");             this.selectHandler && this.selectHandler.runWith(value);             this.startIndex=t...

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

42. Laya2.6 vscode 编译错误 [ 66%]

...译指令 layaair2-cmd compile,报错: [16:31:30] Working directory changed to E:\work\svn\layacore\code\TestLive2d\.laya [16:31:31] Using gulpfile E:\work\svn\layacore\code\TestLive2d\.laya\compile.js   C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\node_mo dules\_gulp@3...

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

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

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

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

44. 输入设备-指南针 [ 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_示例 发布时间: 20251130

45. [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

46. 输入设备-指南针 [ 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_示例 发布时间: 20251130

47. 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_示例 发布时间: 20251130

48. 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_示例 发布时间: 20251130

49. 输入设备-贪吃蛇(重力感应) [ 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_示例 发布时间: 20251130

50. slider [ 62%]

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

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