Utility for propagating asset reloads to dependent ECS data.
When an asset is modified or finishes loading, all components/resources that depend on it are automatically marked as changed so systems can react using standard Bevy change detection.
Install
[]
= "0.1"
Quick Start
use *;
use *;
Implement AssetDependent for your data:
Then register tracking:
app.add_plugins;
React using normal change detection:
Docs
Full usage and advanced patterns, like custom system params, are exhaustively documented at docs.rs/bevy_track_asset.
Roadmap
- Derive
AssetDependent: Macro for derivingAssetDependentimplementations for structs withHandle<T>fields, reducing boilerplate and potential for errors.