Type Alias bevy::prelude::ColorMesh2dBundle

pub type ColorMesh2dBundle = MaterialMesh2dBundle<ColorMaterial>;
Expand description

A component bundle for entities with a Mesh2dHandle and a ColorMaterial.

Aliased Type§

struct ColorMesh2dBundle {
    pub mesh: Mesh2dHandle,
    pub material: Handle<ColorMaterial>,
    pub transform: Transform,
    pub global_transform: GlobalTransform,
    pub visibility: Visibility,
    pub inherited_visibility: InheritedVisibility,
    pub view_visibility: ViewVisibility,


§mesh: Mesh2dHandle§material: Handle<ColorMaterial>§transform: Transform§global_transform: GlobalTransform§visibility: Visibility

User indication of whether an entity is visible

§inherited_visibility: InheritedVisibility§view_visibility: ViewVisibility

Trait Implementations§


impl<M> Clone for MaterialMesh2dBundle<M>where M: Clone + Material2d,


fn clone(&self) -> MaterialMesh2dBundle<M>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl<M> Default for MaterialMesh2dBundle<M>where M: Material2d,


fn default() -> MaterialMesh2dBundle<M>

Returns the “default value” for a type. Read more

impl<M> Bundle for MaterialMesh2dBundle<M>where M: Material2d,


impl<M> DynamicBundle for MaterialMesh2dBundle<M>where M: Material2d,