API / BoneData
Class: BoneData
Defined in: model/ArmatureData.ts:464
The bone data.
Extends
Extended by
Constructors
Constructor
ts
new BoneData(): BoneData;
Returns
BoneData
Inherited from
Properties
hashCode
ts
readonly hashCode: number;
Defined in: core/BaseObject.ts:156
A unique identification number assigned to the object.
Inherited from
length
ts
length: number;
Defined in: model/ArmatureData.ts:495
The bone length.
name
ts
name: string;
Defined in: model/ArmatureData.ts:507
The bone name.
parent
ts
parent: BoneData;
Defined in: model/ArmatureData.ts:523
The parent bone data.
Methods
returnToPool()
ts
returnToPool(): void;
Defined in: core/BaseObject.ts:167
Clear the object and return it back to object pool。
Returns
void
Inherited from
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
Parameter | Type | Description |
---|---|---|
objectConstructor | () => T | The specify class. |
Returns
T
Inherited from
clearPool()
ts
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()
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
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()
ts
static toString(): string;
Defined in: model/ArmatureData.ts:465
Returns
string