pub struct UnityNode {
pub name: String,
pub children: Vec<u32>,
pub mesh_indices: Vec<u32>,
pub transform: UnityNodeTransform,
}Expand description
A Unity-shaped glTF node. References children and meshes by index, mirroring the glTF node structure.
Fields§
§name: StringThe node name. Falls back to the glTF node index if the source node is unnamed.
children: Vec<u32>Indices of child nodes (into UnityGltf::nodes).
mesh_indices: Vec<u32>Indices of meshes referenced by this node (into UnityGltf::meshes).
In glTF a node references at most one mesh, but that mesh may have
multiple primitives stored as separate entries.
transform: UnityNodeTransformLocal transform in Unity’s left-handed coordinate system.
Auto Trait Implementations§
impl Freeze for UnityNode
impl RefUnwindSafe for UnityNode
impl Send for UnityNode
impl Sync for UnityNode
impl Unpin for UnityNode
impl UnsafeUnpin for UnityNode
impl UnwindSafe for UnityNode
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