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

This system extracts the resource of the corresponding Resource type