@pixi/loaders
TypeScript icon, indicating that this package has built-in type declarations

6.5.10 • Public • Published

@pixi/loaders

Installation

npm install @pixi/loaders

Usage

Using the loader directly:

import { Loader } from '@pixi/loaders';

const loader = new Loader();
loader.add('path/to/file.jpg');
loader.load(() => {});

Using the loader as an Application plugin:

import { AppLoaderPlugin } from '@pixi/loaders';
import { Application } from '@pixi/app';
import { extensions } from '@pixi/core';

extensions.add(AppLoaderPlugin);

const app = new Application();
app.loader.add('path/to/file.jpg');
app.loader.load(() => {});

Readme

Keywords

none

Package Sidebar

Install

npm i @pixi/loaders

Homepage

pixijs.com/

Weekly Downloads

55,345

Version

6.5.10

License

MIT

Unpacked Size

1.15 MB

Total Files

17

Last publish

Collaborators

  • zyie
  • bigtimebuddy