SpriteConfig
<static> SpriteConfig
name | type | optional | description |
---|---|---|---|
key | string | Phaser.Textures.Texture | Yes | The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager. |
frame | string | number | Yes | An optional frame from the Texture this Game Object is rendering with. |
anims | string | Phaser.Animations.Animation | Yes | |
useSpriteSheet | boolean | Yes | This property is used exclusively by |
Type: object
Member of: Phaser.Types.GameObjects.Sprite
Source: src/gameobjects/sprite/typedefs/SpriteConfig.js#L1
Since: 3.0.0