Skip to main content

ITextMeshMethods

Trait ITextMeshMethods 

Source
pub trait ITextMeshMethods: ITextMesh {
    // Provided methods
    fn set_text(self, value: impl Into<Il2CppString>) { ... }
    fn set_font_size(self, value: impl Into<i32>) { ... }
    fn set_anchor(self, value: impl Into<TextAnchor>) { ... }
    fn set_color(self, value: impl Into<Color>) { ... }
    fn set_color_injected(self) -> Color { ... }
}

Provided Methods§

Source

fn set_text(self, value: impl Into<Il2CppString>)

set_text(::unity::Il2CppString) overload

Source

fn set_font_size(self, value: impl Into<i32>)

set_fontSize(i32) overload

Source

fn set_anchor(self, value: impl Into<TextAnchor>)

set_anchor(crate::unity_engine::textanchor::TextAnchor) overload

Source

fn set_color(self, value: impl Into<Color>)

set_color(crate::unity_engine::color::Color) overload

Source

fn set_color_injected(self) -> Color

set_color_Injected(*mutcrate::unity_engine::color::Color) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: ITextMesh> ITextMeshMethods for __T

Available on crate feature unity_engine-textmesh only.