Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
f8e08c7
Create a test to ensure that we actually gate on file transactions.
andriyDev Nov 19, 2025
eadffa4
Implement one-to-many asset processing.
andriyDev Sep 27, 2025
ef77402
Add a test for one-to-many asset processing.
andriyDev Sep 27, 2025
ad51784
Update the "wrong_hash" test to also check that one-to-many asset pro…
andriyDev Nov 17, 2025
d5cd83f
Update the `gates_asset_path_on_process` test to also include a "mult…
andriyDev Nov 19, 2025
cdc1d0d
Use let-else for initializing the asset processor.
andriyDev Nov 15, 2025
6a8c431
Delete the meta file of empty folders to make sure we don't keep arou…
andriyDev Nov 15, 2025
5bf6494
Treat any directory with a meta file as an asset path for processed a…
andriyDev Nov 18, 2025
2425be9
Delete processed assets (or multi-processed-assets) before processing…
andriyDev Nov 18, 2025
a12232b
Recursively look for processor asset infos to block on multi-processe…
andriyDev Nov 18, 2025
cb2d262
Create a migration guide for Process trait changes.
andriyDev Nov 19, 2025
0185ec4
Create release notes for one-to-many asset processing.
andriyDev Nov 19, 2025
7eca28b
Update the asset processing example to show that we can do one-to-man…
andriyDev Nov 19, 2025
74f3fe4
Add some checks to verify the behavior of some error cases for invali…
andriyDev Nov 19, 2025
1c757aa
Update some doc comment wording and release note wording.
andriyDev Nov 21, 2025
ba4baa4
Rename write_single and write_multiple to write_full and write_partia…
andriyDev Nov 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions crates/bevy_asset/src/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ pub enum AssetAction<LoaderSettings, ProcessSettings> {
processor: String,
settings: ProcessSettings,
},
/// This asset has been decomposed into multiple files. The original asset path can no longer be
/// loaded.
Decomposed,
/// Do nothing with the asset
Ignore,
}
Expand Down Expand Up @@ -113,6 +116,7 @@ pub struct AssetMetaMinimal {
pub enum AssetActionMinimal {
Load { loader: String },
Process { processor: String },
Decomposed,
Ignore,
}

Expand Down Expand Up @@ -194,13 +198,12 @@ impl_downcast!(Settings);
/// The () processor should never be called. This implementation exists to make the meta format nicer to work with.
impl Process for () {
type Settings = ();
type OutputLoader = ();

async fn process(
&self,
_context: &mut bevy_asset::processor::ProcessContext<'_>,
_settings: &Self::Settings,
_writer: &mut bevy_asset::io::Writer,
_writer_context: bevy_asset::processor::WriterContext<'_>,
) -> Result<(), bevy_asset::processor::ProcessError> {
unreachable!()
}
Expand Down
239 changes: 184 additions & 55 deletions crates/bevy_asset/src/processor/mod.rs

Large diffs are not rendered by default.

Loading