#[repr(C)]pub struct TMP_MeshInfo {
pub mesh: Mesh,
pub vertex_count: i32,
pub vertices: Array<Vector3>,
pub normals: Array<Vector3>,
pub tangents: Array<Vector4>,
pub uvs0: Array<Vector2>,
pub uvs2: Array<Vector2>,
pub colors32: Array<Color32>,
pub triangles: Array<i32>,
pub material: Material,
}Expand description
Fields§
§mesh: Mesh§vertex_count: i32§vertices: Array<Vector3>§normals: Array<Vector3>§tangents: Array<Vector4>§uvs0: Array<Vector2>§uvs2: Array<Vector2>§colors32: Array<Color32>§triangles: Array<i32>§material: MaterialImplementations§
Source§impl TMP_MeshInfo
impl TMP_MeshInfo
pub fn s_default_color() -> Color32
pub fn set_s_default_color(value: Color32)
pub fn s_default_normal() -> Vector3
pub fn set_s_default_normal(value: Vector3)
pub fn s_default_tangent() -> Vector4
pub fn set_s_default_tangent(value: Vector4)
pub fn s_default_bounds() -> Bounds
pub fn set_s_default_bounds(value: Bounds)
Source§impl TMP_MeshInfo
impl TMP_MeshInfo
Source§impl TMP_MeshInfo
impl TMP_MeshInfo
Sourcepub fn ctor(&mut self, mesh: impl Into<Mesh>, size: impl Into<i32>)
pub fn ctor(&mut self, mesh: impl Into<Mesh>, size: impl Into<i32>)
.ctor(crate::unity_engine::mesh::Mesh, i32) overload
Sourcepub fn ctor_2(
&mut self,
mesh: impl Into<Mesh>,
size: impl Into<i32>,
is_volumetric: impl Into<bool>,
)
pub fn ctor_2( &mut self, mesh: impl Into<Mesh>, size: impl Into<i32>, is_volumetric: impl Into<bool>, )
.ctor(crate::unity_engine::mesh::Mesh, i32, bool) overload
Sourcepub fn resize_mesh_info(&mut self, size: impl Into<i32>)
pub fn resize_mesh_info(&mut self, size: impl Into<i32>)
ResizeMeshInfo(i32) overload
Sourcepub fn resize_mesh_info_2(
&mut self,
size: impl Into<i32>,
is_volumetric: impl Into<bool>,
)
pub fn resize_mesh_info_2( &mut self, size: impl Into<i32>, is_volumetric: impl Into<bool>, )
ResizeMeshInfo(i32, bool) overload
Sourcepub fn clear_unused_vertices(&mut self)
pub fn clear_unused_vertices(&mut self)
ClearUnusedVertices() overload
Sourcepub fn clear_unused_vertices_2(&mut self, start_index: impl Into<i32>)
pub fn clear_unused_vertices_2(&mut self, start_index: impl Into<i32>)
ClearUnusedVertices(i32) overload
Sourcepub fn clear_unused_vertices_3(
&mut self,
start_index: impl Into<i32>,
update_mesh: impl Into<bool>,
)
pub fn clear_unused_vertices_3( &mut self, start_index: impl Into<i32>, update_mesh: impl Into<bool>, )
ClearUnusedVertices(i32, bool) overload
Sourcepub fn sort_geometry(&mut self, order: impl Into<VertexSortingOrder>)
pub fn sort_geometry(&mut self, order: impl Into<VertexSortingOrder>)
SortGeometry(crate::tm_pro::vertexsortingorder::VertexSortingOrder) overload
Sourcepub fn sort_geometry_2(
&mut self,
sorting_order: impl Into<IList_1_Interface<i32>>,
)
pub fn sort_geometry_2( &mut self, sorting_order: impl Into<IList_1_Interface<i32>>, )
SortGeometry(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<i32>) overload
Sourcepub fn swap_vertex_data(&mut self, src: impl Into<i32>, dst: impl Into<i32>)
pub fn swap_vertex_data(&mut self, src: impl Into<i32>, dst: impl Into<i32>)
SwapVertexData(i32, i32) overload
Source§impl TMP_MeshInfo
impl TMP_MeshInfo
pub fn ctor_method_info() -> &'static MethodInfo
pub fn ctor_2_method_info() -> &'static MethodInfo
pub fn resize_mesh_info_method_info() -> &'static MethodInfo
pub fn resize_mesh_info_2_method_info() -> &'static MethodInfo
pub fn clear_method_info() -> &'static MethodInfo
pub fn clear_2_method_info() -> &'static MethodInfo
pub fn clear_unused_vertices_method_info() -> &'static MethodInfo
pub fn clear_unused_vertices_2_method_info() -> &'static MethodInfo
pub fn clear_unused_vertices_3_method_info() -> &'static MethodInfo
pub fn sort_geometry_method_info() -> &'static MethodInfo
pub fn sort_geometry_2_method_info() -> &'static MethodInfo
pub fn swap_vertex_data_method_info() -> &'static MethodInfo
pub fn cctor_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for TMP_MeshInfo
impl ClassIdentity for TMP_MeshInfo
Source§impl Clone for TMP_MeshInfo
impl Clone for TMP_MeshInfo
Source§fn clone(&self) -> TMP_MeshInfo
fn clone(&self) -> TMP_MeshInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TMP_MeshInfo
Auto Trait Implementations§
impl Freeze for TMP_MeshInfo
impl RefUnwindSafe for TMP_MeshInfo
impl !Send for TMP_MeshInfo
impl !Sync for TMP_MeshInfo
impl Unpin for TMP_MeshInfo
impl UnwindSafe for TMP_MeshInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)