I have an entity type with an animated sprite.
Currently I spawn them in setup like this:
let texture_handle = asset_server.load("hr-transport-belt.png");
let texture_atlas = TextureAtlas::from_grid(texture_handle, ...);
let texture_atlas_handle = texture_atlases.add(texture_atlas);
commands
.spawn(SpriteSheetBundle {
texture_atlas: texture_atlas_handle.clone(),
sprite: TextureAtlasSprite::new(animation_indecies.first()),
transform: Transform::from_translation(Vec3::new(0.0, 0.0, 0.0)),
..default()
})
.insert(Position::new(0, 0))