pub struct UnityMesh {
pub name: String,
pub positions: Vec<[f32; 3]>,
pub submeshes: Vec<UnitySubmesh>,
}Expand description
A glTF mesh converted into Unity’s left-handed coordinate system,
ready to be assigned to a UnityEngine.Mesh.
Fields§
§name: StringDerived name for UnityEngine.Mesh.name.
positions: Vec<[f32; 3]>All vertex positions concatenated across every primitive (left-handed, X negated).
Tightly packed [x, y, z] floats.
submeshes: Vec<UnitySubmesh>One submesh per glTF primitive. All indices are absolute into positions.
Auto Trait Implementations§
impl Freeze for UnityMesh
impl RefUnwindSafe for UnityMesh
impl Send for UnityMesh
impl Sync for UnityMesh
impl Unpin for UnityMesh
impl UnsafeUnpin for UnityMesh
impl UnwindSafe for UnityMesh
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