Struct ambient_ui::text::Text3D
source · pub struct Text3D {
pub text: String,
pub scale: f32,
}
Expand description
A text element that renders in the main scene in 3D.
Fields§
§text: String
The text to render.
scale: f32
The scale of the text, where 1.0 is about 0.5m tall.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Text3D
impl Send for Text3D
impl Sync for Text3D
impl Unpin for Text3D
impl UnwindSafe for Text3D
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.