bevy/crates/bevy_asset/src
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
..
diagnostic Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
io Delay asset hot reloading (#8503) 2023-05-16 01:26:11 +00:00
asset_server.rs Delay asset hot reloading (#8503) 2023-05-16 01:26:11 +00:00
assets.rs Fixed several missing links in docs. (#8117) 2023-04-23 17:28:36 +00:00
debug_asset_server.rs Delay asset hot reloading (#8503) 2023-05-16 01:26:11 +00:00
filesystem_watcher.rs Delay asset hot reloading (#8503) 2023-05-16 01:26:11 +00:00
handle.rs Use cmp of Self in implementaions of partial_cmp (#8559) 2023-05-06 22:31:25 +00:00
info.rs docs: Full documentation for bevy_asset (#3536) 2022-07-12 15:44:09 +00:00
lib.rs Delay asset hot reloading (#8503) 2023-05-16 01:26:11 +00:00
loader.rs bevy_asset: Add LoadContext::get_handle_untyped (#8470) 2023-04-25 19:32:34 +00:00
path.rs Add Reflect and FromReflect for AssetPath (#8531) 2023-05-08 19:19:19 +00:00
reflect.rs Fixed several missing links in docs. (#8117) 2023-04-23 17:28:36 +00:00