#[repr(C)]pub struct TextGenerationSettings {Show 18 fields
pub font: Font,
pub color: Color,
pub font_size: i32,
pub line_spacing: f32,
pub rich_text: bool,
pub scale_factor: f32,
pub font_style: FontStyle,
pub text_anchor: TextAnchor,
pub align_by_geometry: bool,
pub resize_text_for_best_fit: bool,
pub resize_text_min_size: i32,
pub resize_text_max_size: i32,
pub update_bounds: bool,
pub vertical_overflow: VerticalWrapMode,
pub horizontal_overflow: HorizontalWrapMode,
pub generation_extents: Vector2,
pub pivot: Vector2,
pub generate_out_of_bounds: bool,
}Expand description
Fields§
§font: Font§color: Color§font_size: i32§line_spacing: f32§rich_text: bool§scale_factor: f32§font_style: FontStyle§text_anchor: TextAnchor§align_by_geometry: bool§resize_text_for_best_fit: bool§resize_text_min_size: i32§resize_text_max_size: i32§update_bounds: bool§vertical_overflow: VerticalWrapMode§horizontal_overflow: HorizontalWrapMode§generation_extents: Vector2§pivot: Vector2§generate_out_of_bounds: boolImplementations§
Source§impl TextGenerationSettings
impl TextGenerationSettings
Sourcepub fn compare_colors(
&mut self,
left: impl Into<Color>,
right: impl Into<Color>,
) -> bool
pub fn compare_colors( &mut self, left: impl Into<Color>, right: impl Into<Color>, ) -> bool
CompareColors(crate::unity_engine::color::Color, crate::unity_engine::color::Color) overload
Sourcepub fn compare_vector2(
&mut self,
left: impl Into<Vector2>,
right: impl Into<Vector2>,
) -> bool
pub fn compare_vector2( &mut self, left: impl Into<Vector2>, right: impl Into<Vector2>, ) -> bool
CompareVector2(crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2) overload
Sourcepub fn equals(&mut self, other: impl Into<TextGenerationSettings>) -> bool
pub fn equals(&mut self, other: impl Into<TextGenerationSettings>) -> bool
Equals(crate::unity_engine::textgenerationsettings::TextGenerationSettings) overload
Source§impl TextGenerationSettings
impl TextGenerationSettings
pub fn compare_colors_method_info() -> &'static MethodInfo
pub fn compare_vector2_method_info() -> &'static MethodInfo
pub fn equals_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl Clone for TextGenerationSettings
impl Clone for TextGenerationSettings
Source§fn clone(&self) -> TextGenerationSettings
fn clone(&self) -> TextGenerationSettings
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextGenerationSettings
Auto Trait Implementations§
impl Freeze for TextGenerationSettings
impl RefUnwindSafe for TextGenerationSettings
impl !Send for TextGenerationSettings
impl !Sync for TextGenerationSettings
impl Unpin for TextGenerationSettings
impl UnwindSafe for TextGenerationSettings
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)