pub struct UnityGltf {
pub scene_name: String,
pub root_game_objects: Vec<u32>,
pub game_objects: HashMap<u32, UnityGameObject>,
pub meshes: HashMap<u32, UnityMesh>,
pub images: HashMap<u32, UnityImage>,
pub pbr_metallic_roughness: HashMap<u32, UnityPbrMetallicRoughness>,
}Expand description
A Unity-shaped glTF — same structural relationships as glTF but with all data pre-converted to Unity’s left-handed coordinate system.
Fields§
§scene_name: StringThe name of the default scene. Falls back to the source filename (without extension) if the glTF scene has no name.
root_game_objects: Vec<u32>Indices of the root GameObjects in the default scene.
game_objects: HashMap<u32, UnityGameObject>All GameObjects, keyed by their glTF node index.
meshes: HashMap<u32, UnityMesh>All meshes, keyed by their glTF mesh index.
Each UnityMesh contains a shared vertex array and one sub-mesh per glTF primitive.
images: HashMap<u32, UnityImage>All images, keyed by their glTF image index.
pbr_metallic_roughness: HashMap<u32, UnityPbrMetallicRoughness>All GLTF/PbrMetallicRoughness materials, keyed by their glTF material index.
Auto Trait Implementations§
impl Freeze for UnityGltf
impl RefUnwindSafe for UnityGltf
impl Send for UnityGltf
impl Sync for UnityGltf
impl Unpin for UnityGltf
impl UnsafeUnpin for UnityGltf
impl UnwindSafe for UnityGltf
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