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§
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn on_destroy(self)
fn on_destroy(self)
OnDestroy() overload
Sourcefn load_font_asset(self)
fn load_font_asset(self)
LoadFontAsset() overload
Sourcefn get_canvas(self) -> Canvas
fn get_canvas(self) -> Canvas
GetCanvas() overload
Sourcefn update_env_map_matrix(self)
fn update_env_map_matrix(self)
UpdateEnvMapMatrix() overload
Sourcefn enable_masking(self)
fn enable_masking(self)
EnableMasking() overload
Sourcefn disable_masking(self)
fn disable_masking(self)
DisableMasking() overload
Sourcefn update_mask(self)
fn update_mask(self)
UpdateMask() overload
Sourcefn get_material(self, mat: impl Into<Material>) -> Material
fn get_material(self, mat: impl Into<Material>) -> Material
GetMaterial(crate::unity_engine::material::Material) overload
Sourcefn get_materials(self, mats: impl Into<Array<Material>>) -> Array<Material>
fn get_materials(self, mats: impl Into<Array<Material>>) -> Array<Material>
GetMaterials(::unity::Array<crate::unity_engine::material::Material>) overload
SetSharedMaterial(crate::unity_engine::material::Material) overload
GetSharedMaterials() overload
SetSharedMaterials(::unity::Array<crate::unity_engine::material::Material>) overload
Sourcefn set_outline_thickness(self, thickness: impl Into<f32>)
fn set_outline_thickness(self, thickness: impl Into<f32>)
SetOutlineThickness(f32) overload
Sourcefn set_face_color(self, color: impl Into<Color32>)
fn set_face_color(self, color: impl Into<Color32>)
SetFaceColor(crate::unity_engine::color32::Color32) overload
Sourcefn set_outline_color(self, color: impl Into<Color32>)
fn set_outline_color(self, color: impl Into<Color32>)
SetOutlineColor(crate::unity_engine::color32::Color32) overload
Sourcefn set_shader_depth(self)
fn set_shader_depth(self)
SetShaderDepth() overload
Sourcefn set_culling(self)
fn set_culling(self)
SetCulling() overload
Sourcefn set_perspective_correction(self)
fn set_perspective_correction(self)
SetPerspectiveCorrection() overload
Sourcefn set_mesh_arrays(self, size: impl Into<i32>)
fn set_mesh_arrays(self, size: impl Into<i32>)
SetMeshArrays(i32) overload
Sourcefn set_array_sizes(
self,
unicode_chars: impl Into<Array<TMP_Text_UnicodeChar>>,
) -> i32
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
Sourcefn compute_margin_size(self)
fn compute_margin_size(self)
ComputeMarginSize() overload
Sourcefn on_did_apply_animation_properties(self)
fn on_did_apply_animation_properties(self)
OnDidApplyAnimationProperties() overload
Sourcefn on_canvas_hierarchy_changed(self)
fn on_canvas_hierarchy_changed(self)
OnCanvasHierarchyChanged() overload
Sourcefn on_transform_parent_changed(self)
fn on_transform_parent_changed(self)
OnTransformParentChanged() overload
Sourcefn on_rect_transform_dimensions_change(self)
fn on_rect_transform_dimensions_change(self)
OnRectTransformDimensionsChange() overload
Sourcefn internal_update(self)
fn internal_update(self)
InternalUpdate() overload
Sourcefn on_pre_render_canvas(self)
fn on_pre_render_canvas(self)
OnPreRenderCanvas() overload
Sourcefn generate_text_mesh(self)
fn generate_text_mesh(self)
GenerateTextMesh() overload
Sourcefn get_text_container_local_corners(self) -> Array<Vector3>
fn get_text_container_local_corners(self) -> Array<Vector3>
GetTextContainerLocalCorners() overload
Sourcefn set_active_sub_meshes(self, state: impl Into<bool>)
fn set_active_sub_meshes(self, state: impl Into<bool>)
SetActiveSubMeshes(bool) overload
Sourcefn destroy_sub_mesh_objects(self)
fn destroy_sub_mesh_objects(self)
DestroySubMeshObjects() overload
Sourcefn get_compound_bounds(self) -> Bounds
fn get_compound_bounds(self) -> Bounds
GetCompoundBounds() overload
Sourcefn get_canvas_space_clipping_rect(self) -> Rect
fn get_canvas_space_clipping_rect(self) -> Rect
GetCanvasSpaceClippingRect() overload
Sourcefn update_sdf_scale(self, scale_delta: impl Into<f32>)
fn update_sdf_scale(self, scale_delta: impl Into<f32>)
UpdateSDFScale(f32) overload
Sourcefn get_material_for_rendering(self) -> Material
fn get_material_for_rendering(self) -> Material
get_materialForRendering() overload
Sourcefn get_auto_size_text_container(self) -> bool
fn get_auto_size_text_container(self) -> bool
get_autoSizeTextContainer() overload
Sourcefn set_auto_size_text_container(self, value: impl Into<bool>)
fn set_auto_size_text_container(self, value: impl Into<bool>)
set_autoSizeTextContainer(bool) overload
Sourcefn get_canvas_renderer(self) -> CanvasRenderer
fn get_canvas_renderer(self) -> CanvasRenderer
get_canvasRenderer() overload
Sourcefn calculate_layout_input_horizontal(self)
fn calculate_layout_input_horizontal(self)
CalculateLayoutInputHorizontal() overload
Sourcefn calculate_layout_input_vertical(self)
fn calculate_layout_input_vertical(self)
CalculateLayoutInputVertical() overload
Sourcefn set_vertices_dirty(self)
fn set_vertices_dirty(self)
SetVerticesDirty() overload
Sourcefn set_layout_dirty(self)
fn set_layout_dirty(self)
SetLayoutDirty() overload
Sourcefn set_material_dirty(self)
fn set_material_dirty(self)
SetMaterialDirty() overload
Sourcefn set_all_dirty(self)
fn set_all_dirty(self)
SetAllDirty() overload
Sourcefn delayed_graphic_rebuild(self) -> IEnumerator
fn delayed_graphic_rebuild(self) -> IEnumerator
DelayedGraphicRebuild() overload
Sourcefn delayed_material_rebuild(self) -> IEnumerator
fn delayed_material_rebuild(self) -> IEnumerator
DelayedMaterialRebuild() overload
Sourcefn rebuild(self, update: impl Into<CanvasUpdate>)
fn rebuild(self, update: impl Into<CanvasUpdate>)
Rebuild(crate::unity_engine::ui::canvasupdate::CanvasUpdate) overload
Sourcefn update_sub_object_pivot(self)
fn update_sub_object_pivot(self)
UpdateSubObjectPivot() overload
Sourcefn get_modified_material(self, base_material: impl Into<Material>) -> Material
fn get_modified_material(self, base_material: impl Into<Material>) -> Material
GetModifiedMaterial(crate::unity_engine::material::Material) overload
Sourcefn update_material(self)
fn update_material(self)
UpdateMaterial() overload
Sourcefn get_mask_offset(self) -> Vector4
fn get_mask_offset(self) -> Vector4
get_maskOffset() overload
Sourcefn set_mask_offset(self, value: impl Into<Vector4>)
fn set_mask_offset(self, value: impl Into<Vector4>)
set_maskOffset(crate::unity_engine::vector4::Vector4) overload
Sourcefn recalculate_clipping(self)
fn recalculate_clipping(self)
RecalculateClipping() overload
Sourcefn cull(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>)
fn cull(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>)
Cull(crate::unity_engine::rect::Rect, bool) overload
Sourcefn update_culling(self)
fn update_culling(self)
UpdateCulling() overload
Sourcefn update_mesh_padding(self)
fn update_mesh_padding(self)
UpdateMeshPadding() overload
Sourcefn 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_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
Sourcefn internal_cross_fade_alpha(
self,
alpha: impl Into<f32>,
duration: impl Into<f32>,
ignore_time_scale: impl Into<bool>,
)
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
Sourcefn force_mesh_update(
self,
ignore_active_state: impl Into<bool>,
force_text_reparsing: impl Into<bool>,
)
fn force_mesh_update( self, ignore_active_state: impl Into<bool>, force_text_reparsing: impl Into<bool>, )
ForceMeshUpdate(bool, bool) overload
Sourcefn get_text_info(self, text: impl Into<Il2CppString>) -> TMP_TextInfo
fn get_text_info(self, text: impl Into<Il2CppString>) -> TMP_TextInfo
GetTextInfo(::unity::Il2CppString) overload
Sourcefn clear_mesh(self)
fn clear_mesh(self)
ClearMesh() overload
Sourcefn add_on_pre_render_text(self, value: impl Into<Action_1<TMP_TextInfo>>)
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
Sourcefn remove_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>>)
remove_OnPreRenderText(crate::system::action_1::Action_1<crate::tm_pro::tmp_textinfo::TMP_TextInfo>) overload
Sourcefn update_geometry(self, mesh: impl Into<Mesh>, index: impl Into<i32>)
fn update_geometry(self, mesh: impl Into<Mesh>, index: impl Into<i32>)
UpdateGeometry(crate::unity_engine::mesh::Mesh, i32) overload
Sourcefn update_vertex_data(self, flags: impl Into<TMP_VertexDataUpdateFlags>)
fn update_vertex_data(self, flags: impl Into<TMP_VertexDataUpdateFlags>)
UpdateVertexData(crate::tm_pro::tmp_vertexdataupdateflags::TMP_VertexDataUpdateFlags) overload
Sourcefn update_vertex_data_2(self)
fn update_vertex_data_2(self)
UpdateVertexData() overload
Sourcefn update_font_asset(self)
fn update_font_asset(self)
UpdateFontAsset() 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§
impl<__T: ITextMeshProUGUI> ITextMeshProUGUIMethods for __T
tm_pro-textmeshprougui only.