clik-engine API
    Preparing search index...

    Class EntityPool

    Object pool for entities. Reuses deactivated entities instead of creating/destroying them.

    Usage:

    const pool = new EntityPool(factory, scene, { prefabName: 'bullet', initialSize: 20 });
    pool.useRegistry(registry);

    const bullet = pool.acquire(x, y); // get from pool or create
    pool.release(bullet); // return to pool
    Index

    Constructors

    Accessors

    Methods