destroyContextEmitters 销毁图层上下文的粒子发射器
destroyContextEmitters
类型: MethodDeclaration
所属类: AnimationPlayer
定义位置: animation.ts
描述
销毁图层上下文的粒子发射器
返回值
类型: void
源代码
位置: 第 859 行
private destroyContextEmitters(): void {
const {contexts} = this
const {count} = contexts
for (let i = 0; i < count; i++) {
const context = contexts[i]!
const emitter = context.emitter
if (emitter !== null) {
// 标记发射器为已禁用
emitter.disabled = true
context.emitter = null
this.emitterCount--
}
}
}
文档生成时间:2025/7/7 12:07:06