Skip to main content

ITextMeshProUGUIMethods

Trait ITextMeshProUGUIMethods 

Source
pub trait ITextMeshProUGUIMethods: ITextMeshProUGUI {
Show 72 methods // Provided methods fn awake(self) { ... } fn on_enable(self) { ... } fn on_disable(self) { ... } fn on_destroy(self) { ... } fn load_font_asset(self) { ... } fn get_canvas(self) -> Canvas { ... } fn update_env_map_matrix(self) { ... } fn enable_masking(self) { ... } fn disable_masking(self) { ... } fn update_mask(self) { ... } fn get_material(self, mat: impl Into<Material>) -> Material { ... } fn get_materials(self, mats: impl Into<Array<Material>>) -> Array<Material> { ... } fn set_shared_material(self, mat: impl Into<Material>) { ... } fn get_shared_materials(self) -> Array<Material> { ... } fn set_shared_materials(self, materials: impl Into<Array<Material>>) { ... } fn set_outline_thickness(self, thickness: impl Into<f32>) { ... } fn set_face_color(self, color: impl Into<Color32>) { ... } fn set_outline_color(self, color: impl Into<Color32>) { ... } fn set_shader_depth(self) { ... } fn set_culling(self) { ... } fn set_perspective_correction(self) { ... } fn set_mesh_arrays(self, size: impl Into<i32>) { ... } fn set_array_sizes( self, unicode_chars: impl Into<Array<TMP_Text_UnicodeChar>>, ) -> i32 { ... } fn compute_margin_size(self) { ... } fn on_did_apply_animation_properties(self) { ... } fn on_canvas_hierarchy_changed(self) { ... } fn on_transform_parent_changed(self) { ... } fn on_rect_transform_dimensions_change(self) { ... } fn internal_update(self) { ... } fn on_pre_render_canvas(self) { ... } fn generate_text_mesh(self) { ... } fn get_text_container_local_corners(self) -> Array<Vector3> { ... } fn set_active_sub_meshes(self, state: impl Into<bool>) { ... } fn destroy_sub_mesh_objects(self) { ... } fn get_compound_bounds(self) -> Bounds { ... } fn get_canvas_space_clipping_rect(self) -> Rect { ... } fn update_sdf_scale(self, scale_delta: impl Into<f32>) { ... } fn get_material_for_rendering(self) -> Material { ... } fn get_auto_size_text_container(self) -> bool { ... } fn set_auto_size_text_container(self, value: impl Into<bool>) { ... } fn get_mesh(self) -> Mesh { ... } fn get_canvas_renderer(self) -> CanvasRenderer { ... } fn calculate_layout_input_horizontal(self) { ... } fn calculate_layout_input_vertical(self) { ... } fn set_vertices_dirty(self) { ... } fn set_layout_dirty(self) { ... } fn set_material_dirty(self) { ... } fn set_all_dirty(self) { ... } fn delayed_graphic_rebuild(self) -> IEnumerator { ... } fn delayed_material_rebuild(self) -> IEnumerator { ... } fn rebuild(self, update: impl Into<CanvasUpdate>) { ... } fn update_sub_object_pivot(self) { ... } fn get_modified_material( self, base_material: impl Into<Material>, ) -> Material { ... } fn update_material(self) { ... } fn get_mask_offset(self) -> Vector4 { ... } fn set_mask_offset(self, value: impl Into<Vector4>) { ... } fn recalculate_clipping(self) { ... } fn cull(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>) { ... } fn update_culling(self) { ... } fn update_mesh_padding(self) { ... } fn internal_cross_fade_color( self, target_color: impl Into<Color>, duration: impl Into<f32>, ignore_time_scale: impl Into<bool>, use_alpha: impl Into<bool>, ) { ... } fn internal_cross_fade_alpha( self, alpha: impl Into<f32>, duration: impl Into<f32>, ignore_time_scale: impl Into<bool>, ) { ... } fn force_mesh_update( self, ignore_active_state: impl Into<bool>, force_text_reparsing: impl Into<bool>, ) { ... } fn get_text_info(self, text: impl Into<Il2CppString>) -> TMP_TextInfo { ... } fn clear_mesh(self) { ... } fn add_on_pre_render_text(self, value: impl Into<Action_1<TMP_TextInfo>>) { ... } fn remove_on_pre_render_text(self, value: impl Into<Action_1<TMP_TextInfo>>) { ... } fn update_geometry(self, mesh: impl Into<Mesh>, index: impl Into<i32>) { ... } fn update_vertex_data(self, flags: impl Into<TMP_VertexDataUpdateFlags>) { ... } fn update_vertex_data_2(self) { ... } fn update_font_asset(self) { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn awake(self)

Awake() overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn on_disable(self)

OnDisable() overload

Source

fn on_destroy(self)

OnDestroy() overload

Source

fn load_font_asset(self)

LoadFontAsset() overload

Source

fn get_canvas(self) -> Canvas

GetCanvas() overload

Source

fn update_env_map_matrix(self)

UpdateEnvMapMatrix() overload

Source

fn enable_masking(self)

EnableMasking() overload

Source

fn disable_masking(self)

DisableMasking() overload

Source

fn update_mask(self)

UpdateMask() overload

Source

fn get_material(self, mat: impl Into<Material>) -> Material

GetMaterial(crate::unity_engine::material::Material) overload

Source

fn get_materials(self, mats: impl Into<Array<Material>>) -> Array<Material>

GetMaterials(::unity::Array<crate::unity_engine::material::Material>) overload

Source

fn set_shared_material(self, mat: impl Into<Material>)

SetSharedMaterial(crate::unity_engine::material::Material) overload

Source

fn get_shared_materials(self) -> Array<Material>

GetSharedMaterials() overload

Source

fn set_shared_materials(self, materials: impl Into<Array<Material>>)

SetSharedMaterials(::unity::Array<crate::unity_engine::material::Material>) overload

Source

fn set_outline_thickness(self, thickness: impl Into<f32>)

SetOutlineThickness(f32) overload

Source

fn set_face_color(self, color: impl Into<Color32>)

SetFaceColor(crate::unity_engine::color32::Color32) overload

Source

fn set_outline_color(self, color: impl Into<Color32>)

SetOutlineColor(crate::unity_engine::color32::Color32) overload

Source

fn set_shader_depth(self)

SetShaderDepth() overload

Source

fn set_culling(self)

SetCulling() overload

Source

fn set_perspective_correction(self)

SetPerspectiveCorrection() overload

Source

fn set_mesh_arrays(self, size: impl Into<i32>)

SetMeshArrays(i32) overload

Source

fn set_array_sizes( self, unicode_chars: impl Into<Array<TMP_Text_UnicodeChar>>, ) -> i32

SetArraySizes(::unity::Array<crate::tm_pro::tmp_text::TMP_Text_UnicodeChar>) overload

Source

fn compute_margin_size(self)

ComputeMarginSize() overload

Source

fn on_did_apply_animation_properties(self)

OnDidApplyAnimationProperties() overload

Source

fn on_canvas_hierarchy_changed(self)

OnCanvasHierarchyChanged() overload

Source

fn on_transform_parent_changed(self)

OnTransformParentChanged() overload

Source

fn on_rect_transform_dimensions_change(self)

OnRectTransformDimensionsChange() overload

Source

fn internal_update(self)

InternalUpdate() overload

Source

fn on_pre_render_canvas(self)

OnPreRenderCanvas() overload

Source

fn generate_text_mesh(self)

GenerateTextMesh() overload

Source

fn get_text_container_local_corners(self) -> Array<Vector3>

GetTextContainerLocalCorners() overload

Source

fn set_active_sub_meshes(self, state: impl Into<bool>)

SetActiveSubMeshes(bool) overload

Source

fn destroy_sub_mesh_objects(self)

DestroySubMeshObjects() overload

Source

fn get_compound_bounds(self) -> Bounds

GetCompoundBounds() overload

Source

fn get_canvas_space_clipping_rect(self) -> Rect

GetCanvasSpaceClippingRect() overload

Source

fn update_sdf_scale(self, scale_delta: impl Into<f32>)

UpdateSDFScale(f32) overload

Source

fn get_material_for_rendering(self) -> Material

get_materialForRendering() overload

Source

fn get_auto_size_text_container(self) -> bool

get_autoSizeTextContainer() overload

Source

fn set_auto_size_text_container(self, value: impl Into<bool>)

set_autoSizeTextContainer(bool) overload

Source

fn get_mesh(self) -> Mesh

get_mesh() overload

Source

fn get_canvas_renderer(self) -> CanvasRenderer

get_canvasRenderer() overload

Source

fn calculate_layout_input_horizontal(self)

CalculateLayoutInputHorizontal() overload

Source

fn calculate_layout_input_vertical(self)

CalculateLayoutInputVertical() overload

Source

fn set_vertices_dirty(self)

SetVerticesDirty() overload

Source

fn set_layout_dirty(self)

SetLayoutDirty() overload

Source

fn set_material_dirty(self)

SetMaterialDirty() overload

Source

fn set_all_dirty(self)

SetAllDirty() overload

Source

fn delayed_graphic_rebuild(self) -> IEnumerator

DelayedGraphicRebuild() overload

Source

fn delayed_material_rebuild(self) -> IEnumerator

DelayedMaterialRebuild() overload

Source

fn rebuild(self, update: impl Into<CanvasUpdate>)

Rebuild(crate::unity_engine::ui::canvasupdate::CanvasUpdate) overload

Source

fn update_sub_object_pivot(self)

UpdateSubObjectPivot() overload

Source

fn get_modified_material(self, base_material: impl Into<Material>) -> Material

GetModifiedMaterial(crate::unity_engine::material::Material) overload

Source

fn update_material(self)

UpdateMaterial() overload

Source

fn get_mask_offset(self) -> Vector4

get_maskOffset() overload

Source

fn set_mask_offset(self, value: impl Into<Vector4>)

set_maskOffset(crate::unity_engine::vector4::Vector4) overload

Source

fn recalculate_clipping(self)

RecalculateClipping() overload

Source

fn cull(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>)

Cull(crate::unity_engine::rect::Rect, bool) overload

Source

fn update_culling(self)

UpdateCulling() overload

Source

fn update_mesh_padding(self)

UpdateMeshPadding() overload

Source

fn internal_cross_fade_color( self, target_color: impl Into<Color>, duration: impl Into<f32>, ignore_time_scale: impl Into<bool>, use_alpha: impl Into<bool>, )

InternalCrossFadeColor(crate::unity_engine::color::Color, f32, bool, bool) overload

Source

fn internal_cross_fade_alpha( self, alpha: impl Into<f32>, duration: impl Into<f32>, ignore_time_scale: impl Into<bool>, )

InternalCrossFadeAlpha(f32, f32, bool) overload

Source

fn force_mesh_update( self, ignore_active_state: impl Into<bool>, force_text_reparsing: impl Into<bool>, )

ForceMeshUpdate(bool, bool) overload

Source

fn get_text_info(self, text: impl Into<Il2CppString>) -> TMP_TextInfo

GetTextInfo(::unity::Il2CppString) overload

Source

fn clear_mesh(self)

ClearMesh() overload

Source

fn add_on_pre_render_text(self, value: impl Into<Action_1<TMP_TextInfo>>)

add_OnPreRenderText(crate::system::action_1::Action_1<crate::tm_pro::tmp_textinfo::TMP_TextInfo>) overload

Source

fn remove_on_pre_render_text(self, value: impl Into<Action_1<TMP_TextInfo>>)

remove_OnPreRenderText(crate::system::action_1::Action_1<crate::tm_pro::tmp_textinfo::TMP_TextInfo>) overload

Source

fn update_geometry(self, mesh: impl Into<Mesh>, index: impl Into<i32>)

UpdateGeometry(crate::unity_engine::mesh::Mesh, i32) overload

Source

fn update_vertex_data(self, flags: impl Into<TMP_VertexDataUpdateFlags>)

UpdateVertexData(crate::tm_pro::tmp_vertexdataupdateflags::TMP_VertexDataUpdateFlags) overload

Source

fn update_vertex_data_2(self)

UpdateVertexData() overload

Source

fn update_font_asset(self)

UpdateFontAsset() overload

Source

fn ctor(self)

.ctor() 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: ITextMeshProUGUI> ITextMeshProUGUIMethods for __T

Available on crate feature tm_pro-textmeshprougui only.