NiklasEi / bevy_asset_loader

Bevy plugin helping with asset loading and organization
Apache License 2.0
449 stars 53 forks source link

Custom hashmap keys via `MapKey` trait #181

Closed tguichaoua closed 5 months ago

tguichaoua commented 5 months ago

Changes

NiklasEi commented 5 months ago

I really like this implementation, thank you. Especially support for file name and file stem will be very helpful I think.

One thing we should probably document with this: map keys can clash and it is up to the user that there are no collisions. E.g. with a structure like

folder
    subfolder_a
        file.png
    subfolder_b
        file.png

FileName and FileStem keys will clash leading to only one asset being loaded.