StorageType of resources should not be configurable #3361
Labels
A-ECS
Entities, components, systems, and events
C-Code-Quality
A section of code that is hard to understand or change
The
StorageType
of resources is configurable in theComponentDescriptor
impl.bevy/crates/bevy_ecs/src/component.rs
Line 180 in 7356f15
This doesn't exactly make sense, as we only ever have one of each resource, and it's not immediately clear to me that this is meaningful.
In practice, this is always called with
StorageType::default()
as its argument (defaulting toTableStorage
). This should be moved to within these methods, and the argument should be removed.The text was updated successfully, but these errors were encountered: