diff --git a/crates/bevy_sprite/src/mesh2d/material.rs b/crates/bevy_sprite/src/mesh2d/material.rs index 19c656b5f628e..c99168486dda5 100644 --- a/crates/bevy_sprite/src/mesh2d/material.rs +++ b/crates/bevy_sprite/src/mesh2d/material.rs @@ -432,7 +432,7 @@ pub struct PreparedMaterial2d { } #[derive(Resource)] -struct ExtractedMaterials2d { +pub struct ExtractedMaterials2d { extracted: Vec<(Handle, M)>, removed: Vec>, } @@ -458,7 +458,7 @@ impl Default for RenderMaterials2d { /// This system extracts all created or modified assets of the corresponding [`Material2d`] type /// into the "render world". -fn extract_materials_2d( +pub fn extract_materials_2d( mut commands: Commands, mut events: Extract>>, assets: Extract>>, @@ -505,7 +505,7 @@ impl Default for PrepareNextFrameMaterials { /// This system prepares all assets of the corresponding [`Material2d`] type /// which where extracted this frame for the GPU. -fn prepare_materials_2d( +pub fn prepare_materials_2d( mut prepare_next_frame: Local>, mut extracted_assets: ResMut>, mut render_materials: ResMut>,