Skip to content

API / BlendState

Class: BlendState ​

Defined in: animation/AnimationState.ts:1453

Internal

Extends ​

Constructors ​

Constructor ​

ts
new BlendState(): BlendState;

Returns ​

BlendState

Inherited from ​

BaseObject.constructor

Properties ​

blendWeight ​

ts
blendWeight: number;

Defined in: animation/AnimationState.ts:1469


dirty ​

ts
dirty: number;

Defined in: animation/AnimationState.ts:1465


hashCode ​

ts
readonly hashCode: number;

Defined in: core/BaseObject.ts:156

A unique identification number assigned to the object.

Inherited from ​

BaseObject.hashCode


layer ​

ts
layer: number;

Defined in: animation/AnimationState.ts:1466


layerWeight ​

ts
layerWeight: number;

Defined in: animation/AnimationState.ts:1468


leftWeight ​

ts
leftWeight: number;

Defined in: animation/AnimationState.ts:1467


target ​

ts
target: BaseObject;

Defined in: animation/AnimationState.ts:1470


BONE_ALPHA ​

ts
readonly static BONE_ALPHA: string = "boneAlpha";

Defined in: animation/AnimationState.ts:1455


BONE_TRANSFORM ​

ts
readonly static BONE_TRANSFORM: string = "boneTransform";

Defined in: animation/AnimationState.ts:1454


SLOT_ALPHA ​

ts
readonly static SLOT_ALPHA: string = "slotAlpha";

Defined in: animation/AnimationState.ts:1458


SLOT_DEFORM ​

ts
readonly static SLOT_DEFORM: string = "slotDeform";

Defined in: animation/AnimationState.ts:1457


SLOT_Z_INDEX ​

ts
readonly static SLOT_Z_INDEX: string = "slotZIndex";

Defined in: animation/AnimationState.ts:1459


SURFACE ​

ts
readonly static SURFACE: string = "surface";

Defined in: animation/AnimationState.ts:1456

Methods ​

reset() ​

ts
reset(): void;

Defined in: animation/AnimationState.ts:1519

Returns ​

void


returnToPool() ​

ts
returnToPool(): void;

Defined in: core/BaseObject.ts:167

Clear the object and return it back to object pool。

Returns ​

void

Inherited from ​

BaseObject.returnToPool


update() ​

ts
update(animationState: AnimationState): boolean;

Defined in: animation/AnimationState.ts:1478

Parameters ​

ParameterType
animationStateAnimationState

Returns ​

boolean


borrowObject() ​

ts
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 ​

ParameterTypeDescription
objectConstructor() => TThe specify class.

Returns ​

T

Inherited from ​

BaseObject.borrowObject


clearPool() ​

ts
static clearPool(objectConstructor: typeof BaseObject): void;

Defined in: core/BaseObject.ts:111

Clear the cached instances of a specify object pool.

Parameters ​

ParameterTypeDefault valueDescription
objectConstructortypeof BaseObjectnullSpecify class. (Clear all cached instances if not set)

Returns ​

void

Inherited from ​

BaseObject.clearPool


setMaxCount() ​

ts
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 ​

ParameterTypeDescription
objectConstructortypeof BaseObjectThe specify class. (Set all object pools max cache count if not set)
maxCountnumberMax count.

Returns ​

void

Inherited from ​

BaseObject.setMaxCount


toString() ​

ts
static toString(): string;

Defined in: animation/AnimationState.ts:1461

Returns ​

string

Overrides ​

BaseObject.toString

Released under the MIT License.