phaser - v4.0.0-rc.4
    Preparing search index...
    • Stores a custom plugin in the global plugin cache. The key must be unique, within the scope of the cache.

      Parameters

      • key: string

        A reference used to get this plugin from the plugin cache.

      • plugin: Function

        The plugin to be stored. Should be the core object, not instantiated.

      • mapping: string

        If this plugin is to be injected into the Scene Systems, this is the property key map used.

      • data: any

        A value to be passed to the plugin's init method.

      Returns void