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

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

1. Sprite-缓存为静态图像 [ 100%]

... i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y = Math.random() * Laya.stage.height; textBox.addChild(text); } //缓存为静态图像...

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

2. 射线检测-放置物体 [ 90%]

..../res/threeDimen/texture/layabox.png"); mat.albedo = new Laya.Vector4(Math.random(), Math.random(), Math.random(), 1); sphere.meshRender.material = mat; Laya.Vector3.add(_outHitInfo.position, _offset, _position); sphere.transform.position = _position; sphere.transform.rotate(new Laya.Vector3(0, 90, ...

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

3. 混合模式-Lighter [ 72%]

...).slice(-strLen); } private evalBgColor(): void { var color: number = Math.random() * 0xFFFFFF; var channels: Array = this.getColorChannals(color); this.bgColorTweener.to(this.bgColorChannels, { r: channels[0], g: channels[1], b: channels[2] }, this.gradientInterval, null, Handler.create(this, this....

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