pub struct UnityMeshData {
pub name: String,
pub vertex_count: usize,
pub channels: [Option<Channel>; 12],
pub skin: Option<MeshSkin>,
pub compressed: bool,
pub shapes: Option<MeshShapes>,
pub indices: Vec<u32>,
pub index_size: u32,
pub submeshes: Vec<SubMesh>,
}Expand description
A mesh as stored, in Unity’s frame.
Fields§
§name: Stringm_Name.
vertex_count: usizeHow many vertices the mesh has.
channels: [Option<Channel>; 12]By shader channel (see CHANNELS); the blend weights and indices are in UnityMeshData::skin.
skin: Option<MeshSkin>The mesh’s skin: its blend weights and indices with the bind poses; None for a mesh without blend data.
compressed: boolWhether the vertices were stored as a CompressedMesh (bit-packed) rather than as vertex streams.
shapes: Option<MeshShapes>The mesh’s blend shapes; None for a mesh without any.
indices: Vec<u32>The index buffer, decoded.
index_size: u32The width in bytes of an index in the stored index buffer (2 or 4), which a submesh’s first_byte counts in;
indices holds them widened to u32.
submeshes: Vec<SubMesh>The submeshes, in order.
Implementations§
Trait Implementations§
Source§impl Clone for UnityMeshData
impl Clone for UnityMeshData
Source§impl Debug for UnityMeshData
impl Debug for UnityMeshData
Source§impl PartialEq for UnityMeshData
impl PartialEq for UnityMeshData
impl StructuralPartialEq for UnityMeshData
Auto Trait Implementations§
impl Freeze for UnityMeshData
impl RefUnwindSafe for UnityMeshData
impl Send for UnityMeshData
impl Sync for UnityMeshData
impl Unpin for UnityMeshData
impl UnsafeUnpin for UnityMeshData
impl UnwindSafe for UnityMeshData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more