Trait bevy_internal::render::extract_resource::ExtractResource
source · pub trait ExtractResource: Resource {
type Source: Resource;
// Required method
fn extract_resource(source: &Self::Source) -> Self;
}
Expand description
Describes how a resource gets extracted for rendering.
Therefore the resource is transferred from the “main world” into the “render world”
in the ExtractSchedule
step.
Required Associated Types§
Required Methods§
sourcefn extract_resource(source: &Self::Source) -> Self
fn extract_resource(source: &Self::Source) -> Self
Defines how the resource is transferred into the “render world”.
Object Safety§
This trait is not object safe.