LogoPixi’VN
pixi-jsVariables

Variable: GlobalResourceRegistry

> const GlobalResourceRegistry: object

Defined in: node_modules/pixi.js/lib/utils/pool/GlobalResourceRegistry.d.ts:11

Internal

A singleton collector that manages and provides cleanup for registered pools and caches. Useful for cleaning up all pools/caches at once during application shutdown or reset.

Type Declaration

registeredCount

> readonly registeredCount: number

Gets the number of registered pools and cleanable objects.

Returns

The count of registered items.

isRegistered()

> isRegistered(pool): boolean

Checks if a specific pool or cleanable object is registered.

Parameters

pool

Cleanable

The pool or object to check.

Returns

boolean

True if the item is registered, false otherwise.

register()

> register(pool): void

Registers a pool or cleanable object for cleanup.

Parameters

pool

Cleanable

The pool or object to register.

Returns

void

release()

> release(): void

Clears all registered pools and cleanable objects. This will call clear() on each registered item.

Returns

void

reset()

> reset(): void

Removes all registrations without clearing the pools. Useful if you want to reset the collector without affecting the pools.

Returns

void

unregister()

> unregister(pool): void

Unregisters a pool or cleanable object from cleanup.

Parameters

pool

Cleanable

The pool or object to unregister.

Returns

void