Open
Description
What problem does this solve or what need does it fill?
In order to add a unit struct to a components required components you need to implement Default on it, which is unneeded as unit structs only have one state.
What solution would you like?
Ignore the Default requirements for unit structs
#[derive(Component)]
pub struct Player;
#[derive(Component)]
#[require(Player)]
pub struct Character {
health: u32,
}
What alternative(s) have you considered?
Deriving Default on all unit components which is a bit tedious.
Metadata
Metadata
Assignees
Labels
Entities, components, systems, and eventsA targeted quality-of-life change that makes Bevy easier to useCode that generates Rust codeA "normal" level of difficulty; suitable for simple features or challenging fixesA triage team member thinks this PR or issue should be closed out.There are nontrivial implications that should be thought through