pub fn extract_materials_2d<M>(
    commands: Commands<'_, '_>,
    events: Extract<'_, '_, EventReader<'_, '_, AssetEvent<M>>>,
    assets: Extract<'_, '_, Res<'_, Assets<M>>>
)
where M: Material2d,
Expand description

This system extracts all created or modified assets of the corresponding Material2d type into the “render world”.