bevy/crates/bevy_asset/src
SpecificProtagonist 91ff782439 Fix hot reloading for read_asset_bytes (#6797)
# Objective

Fixes #6780

## Solution

- record the asset path of each watched file
- call `AssetIo::watch_for_changes` in `LoadContext::read_asset_bytes`

---

## Changelog

### Fixed
- fixed hot reloading for `LoadContext::read_asset_bytes`

### Changed
- `AssetIo::watch_path_for_changes` allows watched path and path to reload to differ

## Migration Guide
- for custom `AssetIo`s, differentiate paths to watch and asset paths to reload as a consequence

Co-authored-by: Vincent Junge <specificprotagonist@posteo.org>
2023-03-02 02:51:06 +00:00
..
diagnostic Make StartupSet a base set (#7574) 2023-02-19 03:10:06 +00:00
io Fix hot reloading for read_asset_bytes (#6797) 2023-03-02 02:51:06 +00:00
asset_server.rs Fix hot reloading for read_asset_bytes (#6797) 2023-03-02 02:51:06 +00:00
assets.rs Fix crash with debug_asset_server due to base set changes (#7538) 2023-02-07 14:18:15 +00:00
debug_asset_server.rs Cleanup system sets called labels (#7678) 2023-02-14 21:46:07 +00:00
filesystem_watcher.rs Fix hot reloading for read_asset_bytes (#6797) 2023-03-02 02:51:06 +00:00
handle.rs Remove unnecessary Default impl of HandleType (#7472) 2023-02-02 15:09:06 +00:00
info.rs docs: Full documentation for bevy_asset (#3536) 2022-07-12 15:44:09 +00:00
lib.rs Base Sets (#7466) 2023-02-06 03:10:08 +00:00
loader.rs Fix hot reloading for read_asset_bytes (#6797) 2023-03-02 02:51:06 +00:00
path.rs Add From<String> for AssetPath<'a> (#6337) 2022-10-24 14:14:24 +00:00
reflect.rs Fix some typos (#7763) 2023-02-20 22:56:57 +00:00