DevToolsPlugin
Defined in: plugins/DevToolsPlugin.ts:61
Developer tools plugin for enhanced PIXI.js debugging and inspection.
Integrates the official PIXI.js developer tools browser extension, providing visual debugging capabilities, scene graph inspection, and performance monitoring directly in the browser’s developer tools panel.
Features:
- Scene graph visualization and navigation
- Real-time property inspection and editing
- Performance metrics and rendering statistics
- Texture atlas and asset inspection
- Interactive debugging tools
Example
Section titled “Example”// Plugin is typically initialized automatically in development builds// Manual initialization example:const devToolsPlugin = app.plugins.get<IDevToolsPlugin>('DevToolsPlugin');if (devToolsPlugin && process.env.NODE_ENV === 'development') { devToolsPlugin.initializeDevTools(pixiApp);}
// The devtools will then be available in browser developer tools// Look for the "PIXI" tab in Chrome/Firefox developer tools
Remarks
Section titled “Remarks”- Should only be enabled in development environments
- Requires the PIXI DevTools browser extension to be installed
- May impact performance and should be disabled in production builds
- Provides comprehensive debugging capabilities for PIXI.js applications
Extends
Section titled “Extends”Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DevToolsPlugin(
id
):DevToolsPlugin
Defined in: plugins/Plugin.ts:48
Parameters
Section titled “Parameters”string
= 'Plugin'
Returns
Section titled “Returns”DevToolsPlugin
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”__dill_pixel_method_binding_root
Section titled “__dill_pixel_method_binding_root”__dill_pixel_method_binding_root:
boolean
Defined in: plugins/Plugin.ts:39
Inherited from
Section titled “Inherited from”Plugin
.__dill_pixel_method_binding_root
readonly
id:"DevToolsPlugin"
='DevToolsPlugin'
Defined in: plugins/DevToolsPlugin.ts:63
Plugin identifier for framework registration
Implementation of
Section titled “Implementation of”Overrides
Section titled “Overrides”Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get app():
A
Defined in: plugins/Plugin.ts:53
Returns
Section titled “Returns”A
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”options
Section titled “options”Get Signature
Section titled “Get Signature”get options():
O
Defined in: plugins/Plugin.ts:44
Returns
Section titled “Returns”O
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”addSignalConnection()
Section titled “addSignalConnection()”addSignalConnection(…
args
):void
Defined in: plugins/Plugin.ts:79
Add signal connections to the container.
Parameters
Section titled “Parameters”…SignalConnection
[]
The signal connections to add.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”IDevToolsPlugin
.addSignalConnection
Inherited from
Section titled “Inherited from”clearSignalConnections()
Section titled “clearSignalConnections()”clearSignalConnections():
void
Defined in: plugins/Plugin.ts:85
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”IDevToolsPlugin
.clearSignalConnections
Inherited from
Section titled “Inherited from”destroy()
Section titled “destroy()”destroy():
void
Defined in: plugins/Plugin.ts:57
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”initialize()
Section titled “initialize()”initialize():
Promise
<void
>
Defined in: plugins/DevToolsPlugin.ts:75
Initializes the DevTools plugin. Sets up the plugin for later DevTools activation when needed.
Returns
Section titled “Returns”Promise
<void
>
Example
Section titled “Example”// Called automatically by the plugin system// No manual initialization required
Implementation of
Section titled “Implementation of”Overrides
Section titled “Overrides”initializeDevTools()
Section titled “initializeDevTools()”initializeDevTools(
app
):void
Defined in: plugins/DevToolsPlugin.ts:103
Initializes and activates PIXI DevTools for the specified application. Connects the application to the browser’s PIXI DevTools extension for debugging.
Parameters
Section titled “Parameters”Application
The PIXI Application instance to enable debugging for
Returns
Section titled “Returns”void
Example
Section titled “Example”// Typically called conditionally based on environmentconst pixiApp = new PIXI.Application();const devToolsPlugin = app.plugins.get<IDevToolsPlugin>('DevToolsPlugin');
if (devToolsPlugin && process.env.NODE_ENV === 'development') { devToolsPlugin.initializeDevTools(pixiApp); console.log('PIXI DevTools enabled - check browser developer tools');}
Remarks
Section titled “Remarks”- Should only be called in development environments
- Requires the PIXI DevTools browser extension to be installed
- Once initialized, debugging tools will be available in the browser’s developer tools
- The extension provides a “PIXI” tab with comprehensive debugging features
Implementation of
Section titled “Implementation of”IDevToolsPlugin
.initializeDevTools
postInitialize()
Section titled “postInitialize()”postInitialize(
_app
):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:68
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
| Promise
<void
>
Implementation of
Section titled “Implementation of”IDevToolsPlugin
.postInitialize