bevy/crates/bevy_asset/src
ira 28205fd3f4 Remove AssetServer::watch_for_changes() (#5968)
# Objective
`AssetServer::watch_for_changes()` is racy and redundant with `AssetServerSettings`.
Closes #5964.

## Changelog

* Remove `AssetServer::watch_for_changes()`
* Add `AssetServerSettings` to the prelude.
* Minor cleanup.

## Migration Guide
`AssetServer::watch_for_changes()` was removed.
Instead, use the `AssetServerSettings` resource.
```rust
app // AssetServerSettings must be inserted before adding the AssetPlugin or DefaultPlugins.
	.insert_resource(AssetServerSettings {
		watch_for_changes: true,
		..default()
	})
```


Co-authored-by: devil-ira <justthecooldude@gmail.com>
2022-09-19 16:36:38 +00:00
..
diagnostic docs: Full documentation for bevy_asset (#3536) 2022-07-12 15:44:09 +00:00
io Add warning when using load_folder on web (#5827) 2022-08-29 22:26:43 +00:00
asset_server.rs Remove AssetServer::watch_for_changes() (#5968) 2022-09-19 16:36:38 +00:00
assets.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
debug_asset_server.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
filesystem_watcher.rs Update to notify 5.0 stable (#5865) 2022-09-02 15:54:54 +00:00
handle.rs Remove rand crate from dependency tree (#3992) 2022-07-14 17:00:01 +00:00
info.rs docs: Full documentation for bevy_asset (#3536) 2022-07-12 15:44:09 +00:00
lib.rs Remove AssetServer::watch_for_changes() (#5968) 2022-09-19 16:36:38 +00:00
loader.rs Export anyhow::error for custom asset loaders (#5359) 2022-07-20 14:14:30 +00:00
path.rs Correctly parse labels with '#' (#5729) 2022-08-18 18:53:09 +00:00