API / BlendState
Class: BlendState
Defined in: animation/AnimationState.ts:1453
Internal
Extends
Constructors
Constructor
new BlendState(): BlendState;Returns
BlendState
Inherited from
Properties
blendWeight
blendWeight: number;Defined in: animation/AnimationState.ts:1469
dirty
dirty: number;Defined in: animation/AnimationState.ts:1465
hashCode
readonly hashCode: number;Defined in: core/BaseObject.ts:156
A unique identification number assigned to the object.
Inherited from
layer
layer: number;Defined in: animation/AnimationState.ts:1466
layerWeight
layerWeight: number;Defined in: animation/AnimationState.ts:1468
leftWeight
leftWeight: number;Defined in: animation/AnimationState.ts:1467
target
target: BaseObject;Defined in: animation/AnimationState.ts:1470
BONE_ALPHA
readonly static BONE_ALPHA: string = "boneAlpha";Defined in: animation/AnimationState.ts:1455
BONE_TRANSFORM
readonly static BONE_TRANSFORM: string = "boneTransform";Defined in: animation/AnimationState.ts:1454
SLOT_ALPHA
readonly static SLOT_ALPHA: string = "slotAlpha";Defined in: animation/AnimationState.ts:1458
SLOT_DEFORM
readonly static SLOT_DEFORM: string = "slotDeform";Defined in: animation/AnimationState.ts:1457
SLOT_Z_INDEX
readonly static SLOT_Z_INDEX: string = "slotZIndex";Defined in: animation/AnimationState.ts:1459
SURFACE
readonly static SURFACE: string = "surface";Defined in: animation/AnimationState.ts:1456
Methods
reset()
reset(): void;Defined in: animation/AnimationState.ts:1519
Returns
void
returnToPool()
returnToPool(): void;Defined in: core/BaseObject.ts:167
Clear the object and return it back to object pool。
Returns
void
Inherited from
update()
update(animationState: AnimationState): boolean;Defined in: animation/AnimationState.ts:1478
Parameters
| Parameter | Type |
|---|---|
animationState | AnimationState |
Returns
boolean
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
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
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
toString()
static toString(): string;Defined in: animation/AnimationState.ts:1461
Returns
string
