# 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> |
||
|---|---|---|
| .. | ||
| diagnostic | ||
| io | ||
| asset_server.rs | ||
| assets.rs | ||
| debug_asset_server.rs | ||
| filesystem_watcher.rs | ||
| handle.rs | ||
| info.rs | ||
| lib.rs | ||
| loader.rs | ||
| path.rs | ||