packages/prepare/src/BasePrepare.js
function findMultipleBaseTextures(item, queue)
{
    let result = false;

    // Objects with multiple textures
    if (item && item._textures && item._textures.length)
    {
        for (let i = 0; i < item._textures.length; i++)
        {
            if (item._textures[i] instanceof Texture)
            {
                const baseTexture = item._textures[i].baseTexture;

                if (queue.indexOf(baseTexture) === -1)
                {
                    queue.push(baseTexture);
                    result = true;
                }
            }
        }
    }

    return result;
}
function findMultipleBaseTextures(item, queue)
{
    let result = false;

    // Objects with multiple textures
    if (item && item._textures && item._textures.length)
    {
        for (let i = 0; i < item._textures.length; i++)
        {
            if (item._textures[i] instanceof Texture)
            {
                const baseTexture = item._textures[i].baseTexture;

                if (queue.indexOf(baseTexture) === -1)
                {
                    queue.push(baseTexture);
                    result = true;
                }
            }
        }
    }

    return result;
}
function findMultipleBaseTextures ( item , queue ) { let result = false ; // Objects with multiple textures if ( item && item . _textures && item . _textures . length ) { for ( let i = 0 ; i < item . _textures . length ; i ++ ) { if ( item . _textures [ i ] instanceof Texture ) { const baseTexture = item . _textures [ i ] . baseTexture ; if ( queue . indexOf ( baseTexture ) === - 1 ) { queue . push ( baseTexture ) ; result = true ; } } } } return result ; }
Built-in hook to find multiple textures from objects like AnimatedSprites.

@private
@param {PIXI.DisplayObject} item - Display object to check
@param {Array<*>} queue - Collection of items to upload
@return {boolean} if a PIXI.Texture object was found.
Built - in hook to find multiple textures from objects like AnimatedSprites .