Trait bevy::ecs::prelude::FromWorld

pub trait FromWorld {
    // Required method
    fn from_world(world: &mut World) -> Self;
}
Expand description

Creates an instance of the type this trait is implemented for using data from the supplied World.

This can be helpful for complex initialization or context-aware defaults.

Required Methods§

fn from_world(world: &mut World) -> Self

Creates Self using data from the given World.

Object Safety§

This trait is not object safe.

Implementors§

§

impl FromWorld for GpuPreprocessingSupport

§

impl FromWorld for BlitPipeline

§

impl FromWorld for CASNode

§

impl FromWorld for CASPipeline

§

impl FromWorld for DepthOfFieldGlobalBindGroupLayout

§

impl FromWorld for FxaaPipeline

§

impl FromWorld for MotionBlurPipeline

§

impl FromWorld for MsaaWritebackNode

§

impl FromWorld for TonemappingPipeline

§

impl FromWorld for Children

§

impl FromWorld for Parent

§

impl FromWorld for DeferredLightingLayout

§

impl FromWorld for GlobalLightMeta

§

impl FromWorld for GpuPreprocessNode

§

impl FromWorld for MeshPipeline

§

impl FromWorld for MeshPipelineViewLayouts

§

impl FromWorld for PreprocessPipelines

§

impl FromWorld for ShadowSamplers

§

impl FromWorld for VolumetricFogPipeline

§

impl FromWorld for FallbackImage

§

impl FromWorld for FallbackImageCubemap

§

impl FromWorld for FallbackImageZero

§

impl FromWorld for ImageLoader

§

impl FromWorld for ViewUniforms

§

impl FromWorld for ScreenshotToScreenPipeline

§

impl FromWorld for SceneLoader

§

impl FromWorld for Mesh2dPipeline

§

impl FromWorld for SpritePipeline

§

impl FromWorld for UiPipeline

§

impl FromWorld for WorldId

§

impl<D, F> FromWorld for QueryState<D, F>
where D: QueryData, F: QueryFilter,

§

impl<M> FromWorld for MaterialPipeline<M>
where M: Material,

§

impl<M> FromWorld for PrepassPipeline<M>
where M: Material,

§

impl<M> FromWorld for Material2dPipeline<M>
where M: Material2d,

§

impl<M> FromWorld for UiMaterialPipeline<M>
where M: UiMaterial,

§

impl<N> FromWorld for ViewNodeRunner<N>
where N: ViewNode + FromWorld,

§

impl<Param> FromWorld for SystemState<Param>
where Param: SystemParam,

§

impl<S> FromWorld for State<S>
where S: States + FromWorld,

§

impl<T> FromWorld for T
where T: Default,