API / BlendState
类: BlendState
定义于: animation/AnimationState.ts:1453
Internal
继承
构造函数
构造函数
ts
new BlendState(): BlendState;
返回
BlendState
继承自
属性
blendWeight
ts
blendWeight: number;
定义于: animation/AnimationState.ts:1469
dirty
ts
dirty: number;
定义于: animation/AnimationState.ts:1465
hashCode
ts
readonly hashCode: number;
分配给此实例的唯一标识号。
继承自
layer
ts
layer: number;
定义于: animation/AnimationState.ts:1466
layerWeight
ts
layerWeight: number;
定义于: animation/AnimationState.ts:1468
leftWeight
ts
leftWeight: number;
定义于: animation/AnimationState.ts:1467
target
ts
target: BaseObject;
定义于: animation/AnimationState.ts:1470
BONE_ALPHA
ts
readonly static BONE_ALPHA: string = "boneAlpha";
定义于: animation/AnimationState.ts:1455
BONE_TRANSFORM
ts
readonly static BONE_TRANSFORM: string = "boneTransform";
定义于: animation/AnimationState.ts:1454
SLOT_ALPHA
ts
readonly static SLOT_ALPHA: string = "slotAlpha";
定义于: animation/AnimationState.ts:1458
SLOT_DEFORM
ts
readonly static SLOT_DEFORM: string = "slotDeform";
定义于: animation/AnimationState.ts:1457
SLOT_Z_INDEX
ts
readonly static SLOT_Z_INDEX: string = "slotZIndex";
定义于: animation/AnimationState.ts:1459
SURFACE
ts
readonly static SURFACE: string = "surface";
定义于: animation/AnimationState.ts:1456
方法
reset()
ts
reset(): void;
定义于: animation/AnimationState.ts:1519
返回
void
returnToPool()
ts
returnToPool(): void;
清除该实例的所有数据并将其返还对象池。
返回
void
继承自
update()
ts
update(animationState: AnimationState): boolean;
定义于: animation/AnimationState.ts:1478
参数
参数 | 类型 |
---|---|
animationState | AnimationState |
返回
boolean
borrowObject()
ts
static borrowObject<T>(objectConstructor: () => T): T;
从对象池中获取特定类的实例。
类型参数
类型参数 |
---|
T extends BaseObject |
参数
参数 | 类型 | 描述 |
---|---|---|
objectConstructor | () => T | 特定的类。 |
返回
T
继承自
clearPool()
ts
static clearPool(objectConstructor: typeof BaseObject): void;
清除特定对象池的缓存实例。
参数
参数 | 类型 | 默认值 | 描述 |
---|---|---|---|
objectConstructor | typeof BaseObject | null | 特定的类。 (不设置则清除所有缓存的实例) |
返回
void
继承自
setMaxCount()
ts
static setMaxCount(objectConstructor: typeof BaseObject, maxCount: number): void;
设置特定对象池的最大缓存数量。
参数
参数 | 类型 | 描述 |
---|---|---|
objectConstructor | typeof BaseObject | 特定的类。 (不设置则设置所有对象池的最大缓存数量) |
maxCount | number | 最大缓存数量。 |
返回
void
继承自
toString()
ts
static toString(): string;
定义于: animation/AnimationState.ts:1461
返回
string