pub struct UnitySubMesh {
pub indices: UnityIndices,
pub material_index: Option<u32>,
}Expand description
A single glTF primitive converted to a Unity sub-mesh.
Indices are pre-offset to reference the shared vertex array on crate::unity_mesh::UnityMesh.
Fields§
§indices: UnityIndicesTriangle indices with winding order reversed for Unity’s left-handed convention.
Absolute offsets into the parent [UnityMesh::vertices] array.
material_index: Option<u32>The glTF material index for this sub-mesh, if the primitive referenced one.
Auto Trait Implementations§
impl Freeze for UnitySubMesh
impl RefUnwindSafe for UnitySubMesh
impl Send for UnitySubMesh
impl Sync for UnitySubMesh
impl Unpin for UnitySubMesh
impl UnsafeUnpin for UnitySubMesh
impl UnwindSafe for UnitySubMesh
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