Trait amethyst::prelude::WithNamed[]

pub trait WithNamed {
    pub fn named<S>(self, name: S) -> Self
    where
        S: Into<Cow<'static, str>>
; }

An easy way to name an Entity and give it a Named Component.

Required methods

pub fn named<S>(self, name: S) -> Self where
    S: Into<Cow<'static, str>>, 

Adds a name to the entity being built.

Loading content...

Implementations on Foreign Types

impl<'a> WithNamed for EntityBuilder<'a>

impl<'a> WithNamed for LazyBuilder<'a>

Loading content...

Implementors

Loading content...