Extends
- ResourceLoader
Members
PIXI.Loader.shared PIXI.Loader static
A premade instance of the loader that can be used to load resources.
onComplete PIXI.Loader.ILoaderSignal
Dispatched when completely loaded all resources.
onError PIXI.Loader.ILoaderSignal
Dispatched once per errored resource.
onLoad PIXI.Loader.ILoaderSignal
Dispatched once per loaded resource.
onProgress PIXI.Loader.ILoaderSignal
Dispatched once per loaded or errored resource.
onStart PIXI.Loader.ILoaderSignal
Dispatched when the loader begins to loading process.
Type Definitions
Name | Type | Attributes | Description |
---|---|---|---|
callback |
Function |
Callback function |
|
context |
object |
<optional> |
Context |
Returns:
Type | Description |
---|---|
ICallbackID |
|
Name | Type | Description |
---|---|---|
id |
ICallbackID |
CallbackID returned by |
Callback
Name | Type | Description |
---|---|---|
resource |
PIXI.LoaderResource | |
next |
Function |
Properties:
Name | Type | Description |
---|---|---|
add |
ISignalCallback |
Register callback |
detach |
ISignalDetach |
Detach specific callback by ID |
once |
ISignalCallback |
Register oneshot callback |
Methods
Use the corresponding signal, e.g., event start`` is signal
onStart`.
Name | Type | Description |
---|---|---|
event |
any |
Use the corresponding signal, e.g., event start`` is signal
onStart`.
Name | Type | Description |
---|---|---|
event |
any |
Use the corresponding signal, e.g., event start`` is signal
onStart`.
Name | Type | Description |
---|---|---|
event |
any |
PIXI.Loader.registerPlugin (plugin) PIXI.Loader static
Adds a Loader plugin for the global shared loader and all new Loader instances created.
Name | Type | Description |
---|---|---|
plugin |
PIXI.ILoaderPlugin |
The plugin to add |
Returns:
Type | Description |
---|---|
PIXI.Loader | Reference to PIXI.Loader for chaining |
Destroy the loader, removes references.