pub trait ExtractComponent: Component {
    type Query: WorldQuery + ReadOnlyWorldQuery;
    type Filter: WorldQuery + ReadOnlyWorldQuery;

    fn extract_component(item: <Self::Query as WorldQuery>::Item<'_>) -> Self;
}
Expand description

Describes how a component gets extracted for rendering.

Therefore the component is transferred from the “app world” into the “render world” in the RenderStage::Extract step.

Required Associated Types§

ECS WorldQuery to fetch the components to extract.

Filters the entities with additional constraints.

Required Methods§

Defines how the component is transferred into the “render world”.

Implementors§