Open benfrankel opened 2 months ago
I agree; this design has annoyed me since the Component trait was implemented. I think these should all be newtyped personally.
This seems to be unblocked now, with required components landed and the scene overhaul generally being underway.
This was discussed informally today, with both @cart and I being broadly on board with moving to wrapper components: https://discordapp.com/channels/691052431525675048/1264881140007702558/1278098028536008827
Question
Should components with associated assets (e.g.
Sprite
+Handle<Image>
) include theirHandle
as a field, or as a separate component on the same entity, or something else?Handle
-as-field: May make certain generic systems impossible (see theasset_decompression
example).Handle
-as-component: May create ambiguity (seeEnvironmentMapLight
).From the Discord discussion, this is blocked on Bevy scenes before a design decision can be made.
Status quo
Bevy's answer to this question is inconsistent (as of March 6th, 2024):