Properties:
Name | Type | Default | Description |
---|---|---|---|
autoStart |
boolean |
true
|
Automatically starts the rendering after the construction.
Note: Setting this parameter to |
resizeTo |
Window | HTMLElement |
Element to automatically resize the renderer to. |
|
sharedTicker |
boolean |
false
|
Set |
Example
import { Application } from 'pixi.js';
const app = new Application();
await app.init({
autoStart: false,
resizeTo: window,
sharedTicker: true,
});
Extends
- AutoDetectOptions
- PixiMixins.ApplicationOptions
Members
Automatically starts the rendering after the construction.
Note: Setting this parameter to false
does NOT stop the shared ticker even if you set
options.sharedTicker
to true
in case that it is already started. Stop it by your own.
- Default Value:
- true
Element to automatically resize the renderer to.
Settrue
to use Ticker.shared
, false
to create new ticker.
If set to false
, you cannot register a handler to occur before anything that runs on the shared ticker.
The system ticker will always run before both the shared ticker and the app ticker.
- Default Value:
- false