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

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

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

...ion(); this.aniFly.loadAtlas(PathFly); this.aniFly.play(); 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 = "销毁"...

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

2. UI-RefreshList [ 84%]

...; this.loadingLabel.font = "Microsoft YaHei"; this.loadingLabel.fontSize = 25; this.loadingLabel.color = "#a6a6a6"; this.loadingLabel.pos(61, 24); this.refreshLoading.addChild(this.loadingLabel); Laya.stage.addChild(this.baseBox); // 列表 this.refreshList = new List(); this.refreshList.repeatX = 1...

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

3. 2D物理-仿生机器人 [ 56%]

...cale]; const p5 = [60 * s * this.scale, 15 * -1 * this.scale]; const p6 = [25 * s * this.scale, 37 * -1 * this.scale]; let leg1 = new Sprite(); leg1.pos(this.pos[0] + this.m_offset[0], this.pos[1] + this.m_offset[1] + 16 * this.scale); // TODO 这里的数值待优化 this.Main.box2D.addChild(leg1);...

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