phaser - v3.90.0
    Preparing search index...

    Function BuildGameObjectAnimation

    • Adds an Animation component to a Sprite and populates it based on the given config.

      Parameters

      • sprite: GameObjects.Sprite

        The sprite to add an Animation component to.

      • config: object

        The animation config.

      Returns GameObjects.Sprite