API / AnimationWeightTimelineState
Class: AnimationWeightTimelineState
Defined in: animation/TimelineState.ts:1030
Internal
Extends
Constructors
Constructor
new AnimationWeightTimelineState(): AnimationWeightTimelineState;
Returns
AnimationWeightTimelineState
Inherited from
SingleValueTimelineState
.constructor
Properties
currentPlayTimes
currentPlayTimes: number;
Defined in: animation/BaseTimelineState.ts:38
Inherited from
SingleValueTimelineState
.currentPlayTimes
currentTime
currentTime: number;
Defined in: animation/BaseTimelineState.ts:39
Inherited from
SingleValueTimelineState
.currentTime
dirty
dirty: boolean;
Defined in: animation/BaseTimelineState.ts:33
Inherited from
SingleValueTimelineState
.dirty
hashCode
readonly hashCode: number;
Defined in: core/BaseObject.ts:156
A unique identification number assigned to the object.
Inherited from
SingleValueTimelineState
.hashCode
playState
playState: number;
Defined in: animation/BaseTimelineState.ts:37
-1: start, 0: play, 1: complete;
Inherited from
SingleValueTimelineState
.playState
target
target: BaseObject;
Defined in: animation/BaseTimelineState.ts:40
Inherited from
SingleValueTimelineState
.target
Methods
blend()
blend(_isDirty: boolean): void;
Defined in: animation/BaseTimelineState.ts:231
Parameters
Parameter | Type |
---|---|
_isDirty | boolean |
Returns
void
Inherited from
SingleValueTimelineState
.blend
fadeOut()
fadeOut(): void;
Defined in: animation/BaseTimelineState.ts:198
Returns
void
Inherited from
SingleValueTimelineState
.fadeOut
init()
init(
armature: Armature,
animationState: AnimationState,
timelineData: TimelineData): void;
Defined in: animation/TimelineState.ts:1046
Parameters
Parameter | Type |
---|---|
armature | Armature |
animationState | AnimationState |
timelineData | TimelineData |
Returns
void
Overrides
returnToPool()
returnToPool(): void;
Defined in: core/BaseObject.ts:167
Clear the object and return it back to object pool。
Returns
void
Inherited from
SingleValueTimelineState
.returnToPool
update()
update(passedTime: number): void;
Defined in: animation/BaseTimelineState.ts:202
Parameters
Parameter | Type |
---|---|
passedTime | number |
Returns
void
Inherited from
SingleValueTimelineState
.update
borrowObject()
static borrowObject<T>(objectConstructor: () => T): T;
Defined in: core/BaseObject.ts:136
Get an instance of the specify class from object pool.
Type Parameters
Type Parameter |
---|
T extends BaseObject |
Parameters
Parameter | Type | Description |
---|---|---|
objectConstructor | () => T | The specify class. |
Returns
T
Inherited from
SingleValueTimelineState
.borrowObject
clearPool()
static clearPool(objectConstructor: typeof BaseObject): void;
Defined in: core/BaseObject.ts:111
Clear the cached instances of a specify object pool.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
objectConstructor | typeof BaseObject | null | Specify class. (Clear all cached instances if not set) |
Returns
void
Inherited from
SingleValueTimelineState
.clearPool
setMaxCount()
static setMaxCount(objectConstructor: typeof BaseObject, maxCount: number): void;
Defined in: core/BaseObject.ts:72
Set the maximum cache count of the specify object pool.
Parameters
Parameter | Type | Description |
---|---|---|
objectConstructor | typeof BaseObject | The specify class. (Set all object pools max cache count if not set) |
maxCount | number | Max count. |
Returns
void
Inherited from
SingleValueTimelineState
.setMaxCount
toString()
static toString(): string;
Defined in: animation/TimelineState.ts:1031
Returns
string