Phaser API Documentation

  Version: 
Filter
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Namespace: Sprite
Phaser.Types.GameObjects.Sprite

Type Definitions

SpriteConfig
Focus
Focus
Properties:
name type arguments description
key string <optional>

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

frame number | string <optional>

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

Type:
object
Focus
Focus