Skip to content

EntityEvent cannot be derived for enums #21642

@perry-blueberry

Description

@perry-blueberry

Bevy version and features

0.17.2

What you did

Porting to 0.17, where I previously had an Event used as an entity event for an enum.

#[derive(EntityEvent)]
enum A {}

What went wrong

EntityEvent can only be derived for structs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorD-MacrosCode that generates Rust codeD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions