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

This system extracts the resource of the corresponding Resource type