bevy_asset_loader
bevy_asset_loader copied to clipboard
Rethink naming and rules for attributes
A few issues with the current naming and attribute rules:
- "Collection" is used for structs implementing
AssetCollectionand for folders and files as attributes - It's not clear when attributes like
collectionorstandard_materialneed to be set for dynamic asset fields (first yes, second no) - Need to clarify "dynamic" more
- What's a dynamic asset collection? The struct or the ron file?
- What to call the ron files? Currently, "dynamic asset collection" or "dynamic asset collection file" to distinguish from the first.
For assets known at compile-time, attributes need to distinguish between:
- Handle<T>
- Texture atlas
- Standard material
- folder
- typed folder
- collection
- typed collection
For assets resolved at run-time (dynamic assets), attributes need to distinguish the following cases at compile-time:
- Handle<T> (including texture atlas and standard material)
- Option<Handle<T>> (only supported for dynamic assets)
- folder/collection
- typed folder/collection
See the full_collection and full_dynamic_collection examples for current code.