pub trait ITMP_SubMeshUIMethods: ITMP_SubMeshUI {
Show 44 methods
// Provided methods
fn get_font_asset(self) -> TMP_FontAsset { ... }
fn set_font_asset(self, value: impl Into<TMP_FontAsset>) { ... }
fn get_sprite_asset(self) -> TMP_SpriteAsset { ... }
fn set_sprite_asset(self, value: impl Into<TMP_SpriteAsset>) { ... }
fn get_main_texture(self) -> Texture { ... }
fn get_material(self) -> Material { ... }
fn set_material(self, value: impl Into<Material>) { ... }
fn get_shared_material(self) -> Material { ... }
fn set_shared_material(self, value: impl Into<Material>) { ... }
fn get_fallback_material(self) -> Material { ... }
fn set_fallback_material(self, value: impl Into<Material>) { ... }
fn get_fallback_source_material(self) -> Material { ... }
fn set_fallback_source_material(self, value: impl Into<Material>) { ... }
fn get_material_for_rendering(self) -> Material { ... }
fn get_is_default_material(self) -> bool { ... }
fn set_is_default_material(self, value: impl Into<bool>) { ... }
fn get_padding(self) -> f32 { ... }
fn set_padding(self, value: impl Into<f32>) { ... }
fn get_mesh(self) -> Mesh { ... }
fn set_mesh(self, value: impl Into<Mesh>) { ... }
fn get_text_component(self) -> TMP_Text { ... }
fn on_enable(self) { ... }
fn on_disable(self) { ... }
fn on_destroy(self) { ... }
fn on_transform_parent_changed(self) { ... }
fn get_modified_material(
self,
base_material: impl Into<Material>,
) -> Material { ... }
fn get_padding_for_material(self) -> f32 { ... }
fn get_padding_for_material_2(self, mat: impl Into<Material>) -> f32 { ... }
fn update_mesh_padding(
self,
is_extra_padding: impl Into<bool>,
is_using_bold: impl Into<bool>,
) { ... }
fn set_all_dirty(self) { ... }
fn set_vertices_dirty(self) { ... }
fn set_layout_dirty(self) { ... }
fn set_material_dirty(self) { ... }
fn set_pivot_dirty(self) { ... }
fn get_root_canvas_transform(self) -> Transform { ... }
fn cull(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>) { ... }
fn update_geometry(self) { ... }
fn rebuild(self, update: impl Into<CanvasUpdate>) { ... }
fn refresh_material(self) { ... }
fn update_material(self) { ... }
fn recalculate_clipping(self) { ... }
fn get_material_2(self, mat: impl Into<Material>) -> Material { ... }
fn create_material_instance(self, source: impl Into<Material>) -> Material { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn get_font_asset(self) -> TMP_FontAsset
fn get_font_asset(self) -> TMP_FontAsset
get_fontAsset() overload
Sourcefn set_font_asset(self, value: impl Into<TMP_FontAsset>)
fn set_font_asset(self, value: impl Into<TMP_FontAsset>)
set_fontAsset(crate::tm_pro::tmp_fontasset::TMP_FontAsset) overload
Sourcefn get_sprite_asset(self) -> TMP_SpriteAsset
fn get_sprite_asset(self) -> TMP_SpriteAsset
get_spriteAsset() overload
Sourcefn set_sprite_asset(self, value: impl Into<TMP_SpriteAsset>)
fn set_sprite_asset(self, value: impl Into<TMP_SpriteAsset>)
set_spriteAsset(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset) overload
Sourcefn get_main_texture(self) -> Texture
fn get_main_texture(self) -> Texture
get_mainTexture() overload
Sourcefn get_material(self) -> Material
fn get_material(self) -> Material
get_material() overload
Sourcefn set_material(self, value: impl Into<Material>)
fn set_material(self, value: impl Into<Material>)
set_material(crate::unity_engine::material::Material) overload
get_sharedMaterial() overload
set_sharedMaterial(crate::unity_engine::material::Material) overload
Sourcefn get_fallback_material(self) -> Material
fn get_fallback_material(self) -> Material
get_fallbackMaterial() overload
Sourcefn set_fallback_material(self, value: impl Into<Material>)
fn set_fallback_material(self, value: impl Into<Material>)
set_fallbackMaterial(crate::unity_engine::material::Material) overload
Sourcefn get_fallback_source_material(self) -> Material
fn get_fallback_source_material(self) -> Material
get_fallbackSourceMaterial() overload
Sourcefn set_fallback_source_material(self, value: impl Into<Material>)
fn set_fallback_source_material(self, value: impl Into<Material>)
set_fallbackSourceMaterial(crate::unity_engine::material::Material) overload
Sourcefn get_material_for_rendering(self) -> Material
fn get_material_for_rendering(self) -> Material
get_materialForRendering() overload
Sourcefn get_is_default_material(self) -> bool
fn get_is_default_material(self) -> bool
get_isDefaultMaterial() overload
Sourcefn set_is_default_material(self, value: impl Into<bool>)
fn set_is_default_material(self, value: impl Into<bool>)
set_isDefaultMaterial(bool) overload
Sourcefn get_padding(self) -> f32
fn get_padding(self) -> f32
get_padding() overload
Sourcefn set_padding(self, value: impl Into<f32>)
fn set_padding(self, value: impl Into<f32>)
set_padding(f32) overload
Sourcefn get_text_component(self) -> TMP_Text
fn get_text_component(self) -> TMP_Text
get_textComponent() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn on_destroy(self)
fn on_destroy(self)
OnDestroy() overload
Sourcefn on_transform_parent_changed(self)
fn on_transform_parent_changed(self)
OnTransformParentChanged() 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 get_padding_for_material(self) -> f32
fn get_padding_for_material(self) -> f32
GetPaddingForMaterial() overload
Sourcefn get_padding_for_material_2(self, mat: impl Into<Material>) -> f32
fn get_padding_for_material_2(self, mat: impl Into<Material>) -> f32
GetPaddingForMaterial(crate::unity_engine::material::Material) overload
Sourcefn update_mesh_padding(
self,
is_extra_padding: impl Into<bool>,
is_using_bold: impl Into<bool>,
)
fn update_mesh_padding( self, is_extra_padding: impl Into<bool>, is_using_bold: impl Into<bool>, )
UpdateMeshPadding(bool, bool) overload
Sourcefn set_all_dirty(self)
fn set_all_dirty(self)
SetAllDirty() 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_pivot_dirty(self)
fn set_pivot_dirty(self)
SetPivotDirty() overload
Sourcefn get_root_canvas_transform(self) -> Transform
fn get_root_canvas_transform(self) -> Transform
GetRootCanvasTransform() 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_geometry(self)
fn update_geometry(self)
UpdateGeometry() overload
Sourcefn rebuild(self, update: impl Into<CanvasUpdate>)
fn rebuild(self, update: impl Into<CanvasUpdate>)
Rebuild(crate::unity_engine::ui::canvasupdate::CanvasUpdate) overload
Sourcefn refresh_material(self)
fn refresh_material(self)
RefreshMaterial() overload
Sourcefn update_material(self)
fn update_material(self)
UpdateMaterial() overload
Sourcefn recalculate_clipping(self)
fn recalculate_clipping(self)
RecalculateClipping() overload
Sourcefn get_material_2(self, mat: impl Into<Material>) -> Material
fn get_material_2(self, mat: impl Into<Material>) -> Material
GetMaterial(crate::unity_engine::material::Material) overload
Sourcefn create_material_instance(self, source: impl Into<Material>) -> Material
fn create_material_instance(self, source: impl Into<Material>) -> Material
CreateMaterialInstance(crate::unity_engine::material::Material) 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: ITMP_SubMeshUI> ITMP_SubMeshUIMethods for __T
tm_pro-tmp_submeshui only.