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

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

1. 粒子-粒子演示1 [ 100%]

...Stat.show(); Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya.loader.getRes(partPath); const...

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

2. 粒子-粒子演示2 [ 99%]

...Stat.show(); Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya.loader.getRes(partPath); const...

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

3. 粒子-粒子演示3 [ 99%]

...Stat.show(); Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya.loader.getRes(partPath); const...

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

4. 鼠标交互-键盘交互 [ 47%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.listenKeyboard(); this.createLogger(); Laya.timer.frameLoop(1, this, this.keyboardInspector); } listenKeyboard() { const Event = Laya.Event; // 用Set实现更好一些 keyDownList = []; // 添加键...

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

5. UI-RefreshList [ 17%]

... = 130; this.flag.height = 80; this.flag.mouseEnabled = true; this.flag.mouseThrough = false; this.flagText = new Text(); this.flag.addChild(this.flagText); this.flagText.text = "标记未读"; this.flagText.font = "Microsoft YaHei"; this.flagText.fontSize = 25; this.flagText.color = "#ffffff"; this...

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