bevy_tiled_background
A Bevy plugin for creating tiled, animated UI backgrounds with support for rotation, staggering, spacing, and scrolling animation.

Features
- Responsive tiling - Tiles maintain constant pixel size; more tiles appear on larger screens
- Aspect ratio preservation - Images never stretch
- Rotation - Rotate the entire pattern
- Row staggering - Create brick-like offset patterns
- Spacing - Add gaps between tiles
- Scrolling animation - Smooth horizontal/vertical movement
Installation
Or add to your Cargo.toml:
[]
= "0.1"
Usage
use *;
use ;
Material Properties
| Property | Type | Description |
|---|---|---|
pattern_color |
LinearRgba |
Tint color (alpha controls opacity) |
scale |
f32 |
Size multiplier (1.0 = native texture size) |
rotation |
f32 |
Rotation angle in radians |
stagger |
f32 |
Row offset (0.5 = half-tile shift for brick pattern) |
spacing |
f32 |
How much of each tile the image fills (0.0-1.0) |
scroll_speed |
Vec2 |
Animation speed in pixels per second |
pattern_texture |
Handle<Image> |
The texture to tile |
Bevy Compatibility
| bevy | bevy_tiled_background |
|---|---|
| 0.16 | 0.1 |
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.