Trait bevy::reflect::FromReflect [−]
pub trait FromReflect: Reflect {
fn from_reflect(reflect: &(dyn Reflect + 'static)) -> Option<Self>;
}
Required methods
fn from_reflect(reflect: &(dyn Reflect + 'static)) -> Option<Self>
fn from_reflect(reflect: &(dyn Reflect + 'static)) -> Option<Self>
Creates a clone of a reflected value, converting it to a concrete type if it was a dynamic types (e.g. DynamicStruct
)