bevyengine / bevyengine/bevy

Add `PluginGroupBuilder::replace` helper method

Open
#14,262 4 comments 1 reaction 0 assignees View on GitHub
A-App C-Usability D-Straightforward S-Ready-For-Implementation X-Uncontroversial
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## What problem does this solve or what need does it fill?

Bevy is meant to be modular, which means adding, disabling, and swapping out plugins. However, some ergonomics are missing for _swapping_ when using plugin groups.

## What solution would you like?

```rust
DefaultPlugins
.build()
.replace::(OtherAssetPlugin { ... })
.finish()
```

## What alternative(s) have you considered?

```rust
DefaultPlugins
.build()
.disable::()
.add_after::(OtherAssetPlugin { ... })
.finish()
```

Contributor guide

Open the contributing guide

Research direction

Start by locating PluginGroupBuilder and reading the existing disable, add_after, and finish methods. Check how plugin groups track ordering and how related behavior is tested. Done means replace::(...) swaps the matching plugin and preserves the expected group behavior, with the relevant tests passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.