bevy/crates/bevy_asset/src/io
JMS55 17f045e2a0
Delay asset hot reloading (#8503)
# Objective

- Fix #5631 

## Solution

- Wait 50ms (configurable) after the last modification event before
reloading an asset.

---

## Changelog

- `AssetPlugin::watch_for_changes` is now a `ChangeWatcher` instead of a
`bool`
- Fixed https://github.com/bevyengine/bevy/issues/5631

## Migration Guide
- Replace `AssetPlugin::watch_for_changes: true` with e.g.
`ChangeWatcher::with_delay(Duration::from_millis(200))`

---------

Co-authored-by: François <mockersf@gmail.com>
2023-05-16 01:26:11 +00:00
..
android_asset_io.rs Delay asset hot reloading (#8503) 2023-05-16 01:26:11 +00:00
file_asset_io.rs Delay asset hot reloading (#8503) 2023-05-16 01:26:11 +00:00
metadata.rs docs: Full documentation for bevy_asset (#3536) 2022-07-12 15:44:09 +00:00
mod.rs Delay asset hot reloading (#8503) 2023-05-16 01:26:11 +00:00
wasm_asset_io.rs Delay asset hot reloading (#8503) 2023-05-16 01:26:11 +00:00