pub fn extract_resource<R>(
    commands: Commands<'_, '_>,
    main_resource: Extract<'_, '_, Res<'_, <R as ExtractResource>::Source>>,
    target_resource: Option<ResMut<'_, R>>,
    has_warned_on_remove: Local<'_, bool>
)where
    R: ExtractResource,
Expand description

This system extracts the resource of the corresponding Resource type