Skip to content

#[derive(Reflect)] on enum that wraps another enum does not work #6783

Closed
@jenanwise

Description

@jenanwise

Bevy version

Tried: 0.9 and 523072902cecad440b5d2109077e437fcb7580b6

What you did

Deriving Reflect on a simple enum works:

#[derive(Reflect)]
enum Inner {
    Foo,
}

But deriving Reflect on an enum that wraps another enum does not:

#[derive(Reflect)] // <-- the trait `FromReflect` is not implemented for `Inner`
enum Outer {
    Inner(Inner),
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ReflectionRuntime information about typesC-DocsAn addition or correction to our documentation

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions