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

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

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

...销毁 Texture 使用的图片资源后,会保留 Texture 壳,当下次渲染时,发现 Texture 使用的图片资源不存在,则自动恢复。 */ var GameMain = /** @class */ (function () { function GameMain() { this.isDestroyed = false; this.PathBg = "../../res/bg2.png"; this.PathFly = "...

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

2. UI-List [ 72%]

...效。// 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { thi...

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