Skip to main content

destroy 销毁触发器

destroy

类型: MethodDeclaration

所属类: Trigger

定义位置: trigger.ts

描述

销毁触发器

返回值

类型: void

源代码

位置: 第 478 行

public destroy(): void {
if (!this.destroyed) {
this.emit('destroy')
this.destroyed = true
this.parent?.remove(this)
this.animation?.destroy()
}
}

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