Explore bevy_asset_loader example capabilities
mainThe repository includes several examples covering different use cases for asset loading in Bevy:
Asset Types & Configurations
- Texture Atlases:
atlas_from_grid.rs(Loading a texture atlas from a sprite sheet) - Images:
image_asset.rs(Setting different samplers for image assets) - Materials:
standard_material.rs(Loading a standard material from a png file) - Dynamic Assets:
dynamic_asset.rs(Loading dynamic assets from a.ronfile)custom_dynamic_assets.rs(Defining and using your own dynamic assets)manual_dynamic_asset.rs(Loading an image asset from a path resolved at run time)dynamic_asset_arrays.rs(Defining dynamic assets in arrays)
Collection & State Management
- Collections:
full_collection.rs(Complete collection with all supported non-dynamic field types)full_dynamic_collection.rs(Complete collection with all supported dynamic asset field types)two_collections.rs(Loading multiple asset collections)asset_maps.rs(Using different types as keys in asset maps)
- States & Loading:
failure_state.rs(Setting up a failure state)no_loading_state.rs(Using asset collections without a loading state)sub_state.rs(Using a sub state)finally_init_resource.rs(Inserting aFromWorldresource when all asset collections are loaded)progress_tracking.rs(Setting up progress tracking usingiyes_progress)