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§
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 update_env_map_matrix(self)
fn update_env_map_matrix(self)
UpdateEnvMapMatrix() overload
Sourcefn set_mask(self, mask_type: impl Into<MaskingTypes>)
fn set_mask(self, mask_type: impl Into<MaskingTypes>)
SetMask(crate::tm_pro::maskingtypes::MaskingTypes) overload
Sourcefn set_mask_coordinates(self, coords: impl Into<Vector4>)
fn set_mask_coordinates(self, coords: impl Into<Vector4>)
SetMaskCoordinates(crate::unity_engine::vector4::Vector4) overload
Sourcefn set_mask_coordinates_2(
self,
coords: impl Into<Vector4>,
soft_x: impl Into<f32>,
soft_y: impl Into<f32>,
)
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
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 create_material_instance(self)
fn create_material_instance(self)
CreateMaterialInstance() 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_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_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_object(self)
fn on_pre_render_object(self)
OnPreRenderObject() 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_mesh_filters(self, state: impl Into<bool>)
fn set_mesh_filters(self, state: impl Into<bool>)
SetMeshFilters(bool) 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 set_active_sub_text_object_renderers(self, state: impl Into<bool>)
fn set_active_sub_text_object_renderers(self, state: impl Into<bool>)
SetActiveSubTextObjectRenderers(bool) overload
Sourcefn destroy_sub_mesh_objects(self)
fn destroy_sub_mesh_objects(self)
DestroySubMeshObjects() overload
Sourcefn update_sub_mesh_sorting_layer_id(self, id: impl Into<i32>)
fn update_sub_mesh_sorting_layer_id(self, id: impl Into<i32>)
UpdateSubMeshSortingLayerID(i32) overload
Sourcefn update_sub_mesh_sorting_order(self, order: impl Into<i32>)
fn update_sub_mesh_sorting_order(self, order: impl Into<i32>)
UpdateSubMeshSortingOrder(i32) overload
Sourcefn get_compound_bounds(self) -> Bounds
fn get_compound_bounds(self) -> Bounds
GetCompoundBounds() 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_sorting_layer_id(self) -> i32
fn get_sorting_layer_id(self) -> i32
get_sortingLayerID() overload
Sourcefn set_sorting_layer_id(self, value: impl Into<i32>)
fn set_sorting_layer_id(self, value: impl Into<i32>)
set_sortingLayerID(i32) overload
Sourcefn get_sorting_order(self) -> i32
fn get_sorting_order(self) -> i32
get_sortingOrder() overload
Sourcefn set_sorting_order(self, value: impl Into<i32>)
fn set_sorting_order(self, value: impl Into<i32>)
set_sortingOrder(i32) 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_text_container(self) -> TextContainer
fn get_text_container(self) -> TextContainer
get_textContainer() overload
Sourcefn get_transform(self) -> Transform
fn get_transform(self) -> Transform
get_transform() overload
Sourcefn get_renderer(self) -> Renderer
fn get_renderer(self) -> Renderer
get_renderer() overload
Sourcefn get_mesh_filter(self) -> MeshFilter
fn get_mesh_filter(self) -> MeshFilter
get_meshFilter() overload
Sourcefn get_mask_type(self) -> MaskingTypes
fn get_mask_type(self) -> MaskingTypes
get_maskType() overload
Sourcefn set_mask_type(self, value: impl Into<MaskingTypes>)
fn set_mask_type(self, value: impl Into<MaskingTypes>)
set_maskType(crate::tm_pro::maskingtypes::MaskingTypes) overload
Sourcefn set_mask_2(
self,
type: impl Into<MaskingTypes>,
mask_coords: impl Into<Vector4>,
)
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
Sourcefn 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_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
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 rebuild(self, update: impl Into<CanvasUpdate>)
fn rebuild(self, update: impl Into<CanvasUpdate>)
Rebuild(crate::unity_engine::ui::canvasupdate::CanvasUpdate) overload
Sourcefn update_material(self)
fn update_material(self)
UpdateMaterial() overload
Sourcefn update_mesh_padding(self)
fn update_mesh_padding(self)
UpdateMeshPadding() 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, update_mesh: impl Into<bool>)
fn clear_mesh(self, update_mesh: impl Into<bool>)
ClearMesh(bool) 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
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
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: ITextMeshPro> ITextMeshProMethods for __T
tm_pro-textmeshpro only.