How to use the @pixi/loaders.Loader.shared function in @pixi/loaders

To help you get started, we’ve selected a few @pixi/loaders examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pixijs / pixi.js / packages / mixin-app-loader / src / index.js View on Github external
get()
        {
            if (!this._loader && this._options)
            {
                const { sharedLoader } = this._options;

                this._loader = sharedLoader ? Loader.shared : new Loader();
            }

            return this._loader;
        },
    },