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

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

1. 精灵 · LayaAir3.0文档 · LAYABOX [ 100%]

...exture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 * 等同于graphics.clear();graphics.drawImage(),但性能更高 * 还可以赋值一个图片地址,则会自动加载图片,然后显示 */ get texture(): Texture; set texture(value: Texture); 我们...

来源: Laya3.0_文档 发布时间: 20240528

2. 2D性能优化 · LayaAir3.0文档 · LAYABOX [ 78%]

...为null,垃圾回收器将扫描无法被访问到的对象,并将其清除,这会比引用计数更消耗性能。 1.3 资源卸载 游戏运行时总会加载许多资源,这些资源在使用完成后应及时卸载,否则一直残留在内存中。 下例演示加载资源后对比资...

来源: Laya3.0_文档 发布时间: 20231008

3. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 50%]

...ited = false; this.destroy(true); }; //通过传入粒子特效的路径,清除缓冲池 static ClearPool(root_path: string): void { if (root_path == null) { root_path = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); });...

来源: Laya3.0_文档 发布时间: 20240117