Type Definition amethyst_ui::UiPrefab [−][src]
type UiPrefab<I = TextureFormat, F = FontFormat> = Prefab<(Option<UiTransformBuilder>, Option<UiImageBuilder<I>>, Option<UiTextBuilder<F>>)>;
Trait Implementations
impl<I, F> SimpleFormat<UiPrefab<I, F>> for UiFormat where
I: Format<Texture, Options = TextureMetadata> + Sync + for<'a> Deserialize<'a>,
F: Format<FontAsset, Options = ()> + Sync + for<'a> Deserialize<'a>, [src]
impl<I, F> SimpleFormat<UiPrefab<I, F>> for UiFormat where
I: Format<Texture, Options = TextureMetadata> + Sync + for<'a> Deserialize<'a>,
F: Format<FontAsset, Options = ()> + Sync + for<'a> Deserialize<'a>, const NAME: &'static str
NAME: &'static str = "Ui"
A unique identifier for this format.
type Options = ()
Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more
fn import(&self, bytes: Vec<u8>, _: ()) -> AssetResult<UiPrefab<I, F>>[src]
fn import(&self, bytes: Vec<u8>, _: ()) -> AssetResult<UiPrefab<I, F>>Produces asset data from given bytes.