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

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

1. 音频-播放演示 [ 100%]

...st Event = Laya.Event; var gap = 10; //创建一个Sprite充当音效播放按钮 let soundButton = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; //创建一个Sprite充当音乐...

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

2. 加载-销毁Texture使用的图片资源 [ 77%]

...y(); this.aniFly.pos(250, 100); Laya.stage.addChild(this.aniFly); // 创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, this.btn.width, this.btn.height, "#057AFB"); this.txt = new Text(); this.txt.text = "销毁"; this.txt.pos(75, 15); this.txt.fontSize = 25; this.t...

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

3. UI-RefreshList [ 74%]

...aramthis.time = null; 需要加载多少毫秒后恢复 */ /** 点击标记按钮处理 * @paramthis.index = null; 要删除的列表索引 */ /** 单元格上的删除按钮点击逻辑 * @paramthis.index = null; 要删除的列表索引 */ /** 创建list模拟数据 * @paramthis.max = null; 最大...

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