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

This system extracts the resource of the corresponding Resource type