PixiPlugin needs some reference to the PIXI library object (usually PIXI
), which it looks for in the global scope (window
in most cases). However in a build system or ES module environment you might not have a global scope that has a reference to your PIXI
object. That’s where this method is useful. You can simply pass in that reference using this method like:
PixiPlugin.registerPIXI(PIXI);