Closed teken closed 1 year ago
Do Material
and Energy
have derived FromReflect
, per the error message?
yeah, you need #[derive(FromReflect)] struct T
for Option<T>
: https://github.com/bevyengine/bevy/blob/253db50c63a236e7928f6dc83e99843d4edc8f68/crates/bevy_reflect/src/impls/std.rs#L722
wow im an idiot, thank you
I have a struct:
Both Material and Energy are enums with the same derives, yet it shows this error