API / AnimationProgressTimelineState
类: AnimationProgressTimelineState
定义于: animation/TimelineState.ts:1003
Internal
继承
构造函数
构造函数
new AnimationProgressTimelineState(): AnimationProgressTimelineState;
返回
AnimationProgressTimelineState
继承自
SingleValueTimelineState
.constructor
属性
currentPlayTimes
currentPlayTimes: number;
定义于: animation/BaseTimelineState.ts:38
继承自
SingleValueTimelineState
.currentPlayTimes
currentTime
currentTime: number;
定义于: animation/BaseTimelineState.ts:39
继承自
SingleValueTimelineState
.currentTime
dirty
dirty: boolean;
定义于: animation/BaseTimelineState.ts:33
继承自
SingleValueTimelineState
.dirty
hashCode
readonly hashCode: number;
分配给此实例的唯一标识号。
继承自
SingleValueTimelineState
.hashCode
playState
playState: number;
定义于: animation/BaseTimelineState.ts:37
-1: start, 0: play, 1: complete;
继承自
SingleValueTimelineState
.playState
target
target: BaseObject;
定义于: animation/BaseTimelineState.ts:40
继承自
SingleValueTimelineState
.target
方法
blend()
blend(_isDirty: boolean): void;
定义于: animation/BaseTimelineState.ts:231
参数
参数 | 类型 |
---|---|
_isDirty | boolean |
返回
void
继承自
SingleValueTimelineState
.blend
fadeOut()
fadeOut(): void;
定义于: animation/BaseTimelineState.ts:198
返回
void
继承自
SingleValueTimelineState
.fadeOut
init()
init(
armature: Armature,
animationState: AnimationState,
timelineData: TimelineData): void;
定义于: animation/TimelineState.ts:1019
参数
参数 | 类型 |
---|---|
armature | Armature |
animationState | AnimationState |
timelineData | TimelineData |
返回
void
重写了
returnToPool()
returnToPool(): void;
清除该实例的所有数据并将其返还对象池。
返回
void
继承自
SingleValueTimelineState
.returnToPool
update()
update(passedTime: number): void;
定义于: animation/BaseTimelineState.ts:202
参数
参数 | 类型 |
---|---|
passedTime | number |
返回
void
继承自
SingleValueTimelineState
.update
borrowObject()
static borrowObject<T>(objectConstructor: () => T): T;
从对象池中获取特定类的实例。
类型参数
类型参数 |
---|
T extends BaseObject |
参数
参数 | 类型 | 描述 |
---|---|---|
objectConstructor | () => T | 特定的类。 |
返回
T
继承自
SingleValueTimelineState
.borrowObject
clearPool()
static clearPool(objectConstructor: typeof BaseObject): void;
清除特定对象池的缓存实例。
参数
参数 | 类型 | 默认值 | 描述 |
---|---|---|---|
objectConstructor | typeof BaseObject | null | 特定的类。 (不设置则清除所有缓存的实例) |
返回
void
继承自
SingleValueTimelineState
.clearPool
setMaxCount()
static setMaxCount(objectConstructor: typeof BaseObject, maxCount: number): void;
设置特定对象池的最大缓存数量。
参数
参数 | 类型 | 描述 |
---|---|---|
objectConstructor | typeof BaseObject | 特定的类。 (不设置则设置所有对象池的最大缓存数量) |
maxCount | number | 最大缓存数量。 |
返回
void
继承自
SingleValueTimelineState
.setMaxCount
toString()
static toString(): string;
定义于: animation/TimelineState.ts:1004
返回
string