bevy/crates/bevy_asset/src/io
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
..
android_asset_io.rs Fix hot reloading for read_asset_bytes (#6797) 2023-03-02 02:51:06 +00:00
file_asset_io.rs Fix hot reloading for read_asset_bytes (#6797) 2023-03-02 02:51:06 +00:00
metadata.rs docs: Full documentation for bevy_asset (#3536) 2022-07-12 15:44:09 +00:00
mod.rs Fix hot reloading for read_asset_bytes (#6797) 2023-03-02 02:51:06 +00:00
wasm_asset_io.rs Fix hot reloading for read_asset_bytes (#6797) 2023-03-02 02:51:06 +00:00