Skip to main content

ITMP_SubMeshUIMethods

Trait ITMP_SubMeshUIMethods 

Source
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§

Source

fn get_font_asset(self) -> TMP_FontAsset

get_fontAsset() overload

Source

fn set_font_asset(self, value: impl Into<TMP_FontAsset>)

set_fontAsset(crate::tm_pro::tmp_fontasset::TMP_FontAsset) overload

Source

fn get_sprite_asset(self) -> TMP_SpriteAsset

get_spriteAsset() overload

Source

fn set_sprite_asset(self, value: impl Into<TMP_SpriteAsset>)

set_spriteAsset(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset) overload

Source

fn get_main_texture(self) -> Texture

get_mainTexture() overload

Source

fn get_material(self) -> Material

get_material() overload

Source

fn set_material(self, value: impl Into<Material>)

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

Source

fn get_shared_material(self) -> Material

get_sharedMaterial() overload

Source

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

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

Source

fn get_fallback_material(self) -> Material

get_fallbackMaterial() overload

Source

fn set_fallback_material(self, value: impl Into<Material>)

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

Source

fn get_fallback_source_material(self) -> Material

get_fallbackSourceMaterial() overload

Source

fn set_fallback_source_material(self, value: impl Into<Material>)

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

Source

fn get_material_for_rendering(self) -> Material

get_materialForRendering() overload

Source

fn get_is_default_material(self) -> bool

get_isDefaultMaterial() overload

Source

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

set_isDefaultMaterial(bool) overload

Source

fn get_padding(self) -> f32

get_padding() overload

Source

fn set_padding(self, value: impl Into<f32>)

set_padding(f32) overload

Source

fn get_mesh(self) -> Mesh

get_mesh() overload

Source

fn set_mesh(self, value: impl Into<Mesh>)

set_mesh(crate::unity_engine::mesh::Mesh) overload

Source

fn get_text_component(self) -> TMP_Text

get_textComponent() overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn on_disable(self)

OnDisable() overload

Source

fn on_destroy(self)

OnDestroy() overload

Source

fn on_transform_parent_changed(self)

OnTransformParentChanged() overload

Source

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

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

Source

fn get_padding_for_material(self) -> f32

GetPaddingForMaterial() overload

Source

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

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

Source

fn update_mesh_padding( self, is_extra_padding: impl Into<bool>, is_using_bold: impl Into<bool>, )

UpdateMeshPadding(bool, bool) overload

Source

fn set_all_dirty(self)

SetAllDirty() 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_pivot_dirty(self)

SetPivotDirty() overload

Source

fn get_root_canvas_transform(self) -> Transform

GetRootCanvasTransform() 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_geometry(self)

UpdateGeometry() overload

Source

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

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

Source

fn refresh_material(self)

RefreshMaterial() overload

Source

fn update_material(self)

UpdateMaterial() overload

Source

fn recalculate_clipping(self)

RecalculateClipping() overload

Source

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

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

Source

fn create_material_instance(self, source: impl Into<Material>) -> Material

CreateMaterialInstance(crate::unity_engine::material::Material) 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: ITMP_SubMeshUI> ITMP_SubMeshUIMethods for __T

Available on crate feature tm_pro-tmp_submeshui only.