Skip to content

Replace FromWorld blanket implementation with derive macro #4265

Closed
@Shatur

Description

@Shatur

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

Currently resources can have either FromWorld or Default trait implementation because of blanked FromWorld implementation. This causes inconveniences with other crates integration. For example, confy crate requires configuration structure to have Default trait, so I can't create a convenient FromWorld for it.

What solution would you like?

I would suggest to switch to explicit derive macro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions