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