跳到主要内容

loadDirCase 加载动画方向

loadDirCase

类型: MethodDeclaration

所属类: AnimationPlayer

定义位置: animation.ts

描述

加载动画方向

返回值

类型: void

源代码

位置: 第 196 行

private loadDirCase(): void {
const params = this.dirList[this.direction]
if (params) {
const dirCase = this.dirCases[params.index]
this.layers = dirCase.layers
// 销毁上下文中的粒子发射器
// 加载当前动作的上下文
this.destroyContextEmitters()
this.loadContexts(this.contexts)
this.length = dirCase.length
this.loopStart = dirCase.loopStart
this.cycleIndex = 0
this.ended = false
}
}

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