Optional
anchorThe anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values.
Optional
roundWhether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering.
Optional
textureThe texture to use for the sprite. If not provided, uses Texture.EMPTY
Options for configuring a Sprite instance. Defines the texture, anchor point, and rendering behavior.
Example