phaser - v4.0.0-rc.4
    Preparing search index...

    A single JSON based Texture Atlas File suitable for loading by the Loader.

    These are created when you use the Phaser.Loader.LoaderPlugin#atlas method and are not typically created directly.

    For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#atlas.

    https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-for-phaser3?source=photonstorm

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • loader: LoaderPlugin

        A reference to the Loader that is responsible for this file.

      • key: string | AsepriteFileConfig

        The key to use for this file, or a file configuration object.

      • OptionaltextureURL: string | string[]

        The absolute or relative URL to load the texture image file from. If undefined or null it will be set to <key>.png, i.e. if key was "alien" then the URL will be "alien.png".

      • OptionalatlasURL: string | object

        The absolute or relative URL to load the texture atlas json data file from. If undefined or null it will be set to <key>.json, i.e. if key was "alien" then the URL will be "alien.json". Or, a well formed JSON object.

      • OptionaltextureXhrSettings: XHRSettingsObject

        An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.

      • OptionalatlasXhrSettings: XHRSettingsObject

        An XHR Settings configuration object for the atlas json file. Used in replacement of the Loaders default XHR Settings.

      Returns AsepriteFile

    Properties

    baseURL: string

    A reference to the Loaders baseURL at the time this MultiFile was created. Used to populate child-files.

    complete: boolean

    The completion status of this MultiFile.

    config: any

    A storage container for transient data that the loading files need.

    failed: number

    The number of files that failed to load.

    files: File[]

    Array of files that make up this MultiFile.

    key: string

    Unique cache key (unique within its file type)

    loader: LoaderPlugin

    A reference to the Loader that is going to load this file.

    path: string

    A reference to the Loaders path at the time this MultiFile was created. Used to populate child-files.

    pending: number

    The number of files to load.

    prefix: string

    A reference to the Loaders prefix at the time this MultiFile was created. Used to populate child-files.

    state: number

    The current state of the file. One of the FILE_CONST values.

    type: string

    The file type string for sorting within the Loader.

    Methods

    • Adds this file to its target cache upon successful loading and processing.

      Returns void

    • Called once all children of this multi file have been added to their caches and is now ready for deletion from the Loader.

      It will emit a filecomplete event from the LoaderPlugin.

      Returns void