Skip to main content

ITextMeshProMethods

Trait ITextMeshProMethods 

Source
pub trait ITextMeshProMethods: ITextMeshPro {
Show 75 methods // Provided methods fn awake(self) { ... } fn on_enable(self) { ... } fn on_disable(self) { ... } fn on_destroy(self) { ... } fn load_font_asset(self) { ... } fn update_env_map_matrix(self) { ... } fn set_mask(self, mask_type: impl Into<MaskingTypes>) { ... } fn set_mask_coordinates(self, coords: impl Into<Vector4>) { ... } fn set_mask_coordinates_2( self, coords: impl Into<Vector4>, soft_x: impl Into<f32>, soft_y: impl Into<f32>, ) { ... } 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 create_material_instance(self) { ... } fn set_shader_depth(self) { ... } fn set_culling(self) { ... } fn set_perspective_correction(self) { ... } 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_transform_parent_changed(self) { ... } fn on_rect_transform_dimensions_change(self) { ... } fn internal_update(self) { ... } fn on_pre_render_object(self) { ... } fn generate_text_mesh(self) { ... } fn get_text_container_local_corners(self) -> Array<Vector3> { ... } fn set_mesh_filters(self, state: impl Into<bool>) { ... } fn set_active_sub_meshes(self, state: impl Into<bool>) { ... } fn set_active_sub_text_object_renderers(self, state: impl Into<bool>) { ... } fn destroy_sub_mesh_objects(self) { ... } fn update_sub_mesh_sorting_layer_id(self, id: impl Into<i32>) { ... } fn update_sub_mesh_sorting_order(self, order: impl Into<i32>) { ... } fn get_compound_bounds(self) -> Bounds { ... } fn update_sdf_scale(self, scale_delta: impl Into<f32>) { ... } fn get_sorting_layer_id(self) -> i32 { ... } fn set_sorting_layer_id(self, value: impl Into<i32>) { ... } fn get_sorting_order(self) -> i32 { ... } fn set_sorting_order(self, value: impl Into<i32>) { ... } fn get_auto_size_text_container(self) -> bool { ... } fn set_auto_size_text_container(self, value: impl Into<bool>) { ... } fn get_text_container(self) -> TextContainer { ... } fn get_transform(self) -> Transform { ... } fn get_renderer(self) -> Renderer { ... } fn get_mesh(self) -> Mesh { ... } fn get_mesh_filter(self) -> MeshFilter { ... } fn get_mask_type(self) -> MaskingTypes { ... } fn set_mask_type(self, value: impl Into<MaskingTypes>) { ... } fn set_mask_2( self, type: impl Into<MaskingTypes>, mask_coords: impl Into<Vector4>, ) { ... } fn set_mask_3( self, type: impl Into<MaskingTypes>, mask_coords: impl Into<Vector4>, softness_x: impl Into<f32>, softness_y: impl Into<f32>, ) { ... } fn set_vertices_dirty(self) { ... } fn set_layout_dirty(self) { ... } fn set_material_dirty(self) { ... } fn set_all_dirty(self) { ... } fn rebuild(self, update: impl Into<CanvasUpdate>) { ... } fn update_material(self) { ... } fn update_mesh_padding(self) { ... } 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, update_mesh: impl Into<bool>) { ... } 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 calculate_layout_input_horizontal(self) { ... } fn calculate_layout_input_vertical(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 update_env_map_matrix(self)

UpdateEnvMapMatrix() overload

Source

fn set_mask(self, mask_type: impl Into<MaskingTypes>)

SetMask(crate::tm_pro::maskingtypes::MaskingTypes) overload

Source

fn set_mask_coordinates(self, coords: impl Into<Vector4>)

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

Source

fn set_mask_coordinates_2( self, coords: impl Into<Vector4>, soft_x: impl Into<f32>, soft_y: impl Into<f32>, )

SetMaskCoordinates(crate::unity_engine::vector4::Vector4, f32, f32) 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 create_material_instance(self)

CreateMaterialInstance() 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_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_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_object(self)

OnPreRenderObject() overload

Source

fn generate_text_mesh(self)

GenerateTextMesh() overload

Source

fn get_text_container_local_corners(self) -> Array<Vector3>

GetTextContainerLocalCorners() overload

Source

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

SetMeshFilters(bool) overload

Source

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

SetActiveSubMeshes(bool) overload

Source

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

SetActiveSubTextObjectRenderers(bool) overload

Source

fn destroy_sub_mesh_objects(self)

DestroySubMeshObjects() overload

Source

fn update_sub_mesh_sorting_layer_id(self, id: impl Into<i32>)

UpdateSubMeshSortingLayerID(i32) overload

Source

fn update_sub_mesh_sorting_order(self, order: impl Into<i32>)

UpdateSubMeshSortingOrder(i32) overload

Source

fn get_compound_bounds(self) -> Bounds

GetCompoundBounds() overload

Source

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

UpdateSDFScale(f32) overload

Source

fn get_sorting_layer_id(self) -> i32

get_sortingLayerID() overload

Source

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

set_sortingLayerID(i32) overload

Source

fn get_sorting_order(self) -> i32

get_sortingOrder() overload

Source

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

set_sortingOrder(i32) 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_text_container(self) -> TextContainer

get_textContainer() overload

Source

fn get_transform(self) -> Transform

get_transform() overload

Source

fn get_renderer(self) -> Renderer

get_renderer() overload

Source

fn get_mesh(self) -> Mesh

get_mesh() overload

Source

fn get_mesh_filter(self) -> MeshFilter

get_meshFilter() overload

Source

fn get_mask_type(self) -> MaskingTypes

get_maskType() overload

Source

fn set_mask_type(self, value: impl Into<MaskingTypes>)

set_maskType(crate::tm_pro::maskingtypes::MaskingTypes) overload

Source

fn set_mask_2( self, type: impl Into<MaskingTypes>, mask_coords: impl Into<Vector4>, )

SetMask(crate::tm_pro::maskingtypes::MaskingTypes, crate::unity_engine::vector4::Vector4) overload

Source

fn set_mask_3( self, type: impl Into<MaskingTypes>, mask_coords: impl Into<Vector4>, softness_x: impl Into<f32>, softness_y: impl Into<f32>, )

SetMask(crate::tm_pro::maskingtypes::MaskingTypes, crate::unity_engine::vector4::Vector4, f32, f32) 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 rebuild(self, update: impl Into<CanvasUpdate>)

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

Source

fn update_material(self)

UpdateMaterial() overload

Source

fn update_mesh_padding(self)

UpdateMeshPadding() 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, update_mesh: impl Into<bool>)

ClearMesh(bool) 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 calculate_layout_input_horizontal(self)

CalculateLayoutInputHorizontal() overload

Source

fn calculate_layout_input_vertical(self)

CalculateLayoutInputVertical() 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: ITextMeshPro> ITextMeshProMethods for __T

Available on crate feature tm_pro-textmeshpro only.