Creates a new Sprite component.
Configuration for the sprite
OptionalactorBlending mode for rendering
Color tint applied to the sprite
OptionalcurrentCurrent frame to render
Whether the sprite is disabled and should not render
ReadonlyfitHow the texture should fit within the sprite bounds
Whether to flip the sprite horizontally
Whether to flip the sprite vertically
Height of the sprite in pixels
Opacity from 0 (transparent) to 1 (opaque)
OptionalrenderInternal rendering data
Amount of frames in the sprite sheet
Sorting layer name for rendering order
Center point for sorting calculations
Path to the texture image file
Texture sampling offset in pixels. Only applies to fit: 'repeat'
With flipX/flipY the tile is mirrored, so a positive offset scrolls in
the mirrored direction.
Width of the sprite in pixels
Staticcomponent
Sprite component for rendering 2D textures.
Handles the visual representation of an actor using a texture. It can be used to render a single texture or a texture slice from a sprite sheet.
Example