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

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

1. 计时器-间隔循环 [ 100%]

...r = "#232628"; Stat.show(); this.setup(); } setup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText = this.createText("基于帧频旋转", this.rotateTimeBasedText.x, this.rotateT...

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

2. 输入设备-指南针 [ 74%]

...显示 degreesText.text = 360 - Math.floor(info.alpha) + "°"; compassImg.rotation = info.alpha; // 更新方位指示器 directionIndicator.x = -1 * Math.floor(info.gamma) / 90 * 70 + compassImg.x; directionIndicator.y = -1 * Math.floor(info.beta) / 90 * 70 + compassImg.y; } } new InputDevice_Compa...

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