Example
import { ApplicationPlugin } from 'pixi.js';
class MyPlugin implements ApplicationPlugin
{
static init(options)
{
// do something with options
}
static destroy()
{
// destruction code here
}
}
Methods
Called when destroying Application, scoped to Application instance.
Called when Application is constructed, scoped to Application instance.
Passes in options as the only argument, which are Application init options.
| Name | Type | Description |
|---|---|---|
options |
object |
Application options. |