phaser - v4.0.0-rc.4
    Preparing search index...
    SpriteConfig: GameObjectConfig & {
        anims?: string | Animations.Animation | PlayAnimationConfig;
        frame?: string | number;
        key?: string | Textures.Texture;
        useSpriteSheet?: boolean;
    }

    Type declaration

    • Optionalanims?: string | Animations.Animation | PlayAnimationConfig

      The string-based key of the animation to play, or an Animation instance, or a PlayAnimationConfig object.

    • Optionalframe?: string | number

      An optional frame from the Texture this Game Object is rendering with.

    • Optionalkey?: string | Textures.Texture

      The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.

    • OptionaluseSpriteSheet?: boolean

      This property is used exclusively by Tilemap.createFromTiles. Set to true if this Sprite is being created by a Tilemap and is part of a spritesheet.