bevy/examples/2d
Rob Parrett 3d64acd0c3 Add more info to texture loading error in texture_atlas example (#6456)
# Objective

- Fix an awkwardly phrased/typoed error message
- Actually tell users which file caused the error
- IMO we don't need to panic

## Solution

- Add a warning including the involved asset path when a non-image is found by `load_folder`
- Note: uses `let else` which is stable now

```
2022-11-03T14:17:59.006861Z  WARN texture_atlas: Some(AssetPath { path: "textures/rpg/tiles/whatisthisdoinghere.ogg", label: None }) did not resolve to an `Image` asset.
```
2022-11-05 16:30:13 +00:00
..
2d_shapes.rs Rename shapes examples for consistency (#6082) 2022-09-25 00:57:07 +00:00
mesh2d_manual.rs Remove outdated uses of single-tuple bundles (#6406) 2022-10-29 18:15:28 +00:00
mesh2d_vertex_color_texture.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
mesh2d.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
move_sprite.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
rotation.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
sprite_flipping.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
sprite_sheet.rs Use plugin setup for resource only used at setup time (#6360) 2022-10-25 22:19:34 +00:00
sprite.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
text2d.rs Add global time scaling (#5752) 2022-10-22 18:52:29 +00:00
texture_atlas.rs Add more info to texture loading error in texture_atlas example (#6456) 2022-11-05 16:30:13 +00:00
transparency_2d.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00