跳到主要内容

destroy 销毁图层中的粒子纹理

destroy

类型: MethodDeclaration

所属类: ParticleLayer

定义位置: animation.ts

描述

销毁图层中的粒子纹理

返回值

类型: void

源代码

位置: 第 1821 行

public destroy(): void {
if (this.texture instanceof ImageTexture) {
this.texture.destroy()
this.texture = null
}
}

文档生成时间:2025/7/7 12:07:06