Struct bevy_svg::prelude::SvgBundle[][src]

pub struct SvgBundle {
    pub svg: Svg,
    pub sprite: Sprite,
    pub mesh: Handle<Mesh>,
    pub material: Handle<SvgMaterial>,
    pub main_pass: MainPass,
    pub draw: Draw,
    pub visible: Visible,
    pub render_pipelines: RenderPipelines,
    pub transform: Transform,
    pub global_transform: GlobalTransform,
}

A Bevy [Bundle] representing an SVG entity.

Fields

svg: Svgsprite: Spritemesh: Handle<Mesh>material: Handle<SvgMaterial>main_pass: MainPassdraw: Drawvisible: Visiblerender_pipelines: RenderPipelinestransform: Transformglobal_transform: GlobalTransform

Implementations

impl SvgBundle[src]

pub fn new(svg: Svg) -> SvgBundle[src]

Create a new SvgBundle from a [Svg].

pub fn at_position(self, translation: Vec3) -> SvgBundle[src]

Specifies the 3D position at which the SvgBundle will be spawned.

pub fn with_transform(self, transform: Transform) -> SvgBundle[src]

Specifies a Transform.

pub fn with_scale(self, scale: Vec2) -> SvgBundle[src]

Scale the SVG.

Trait Implementations

impl Bundle for SvgBundle[src]

SAFE: TypeInfo is returned in field-definition-order. [from_components] and [get_components] use field-definition-order

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> Downcast<T> for T

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,