Skip to main content

Crate gltforge_unity

Crate gltforge_unity 

Source

Re-exports§

pub use unity_game_object::gltforge_game_object_child;
pub use unity_game_object::gltforge_game_object_child_count;
pub use unity_game_object::gltforge_game_object_count;
pub use unity_game_object::gltforge_game_object_mesh_count;
pub use unity_game_object::gltforge_game_object_mesh_index;
pub use unity_game_object::gltforge_game_object_name;
pub use unity_game_object::gltforge_game_object_transform;
pub use unity_gltf::UnityGltf;
pub use unity_gltf::gltforge_load;
pub use unity_gltf::gltforge_release;
pub use unity_gltf::gltforge_retain;
pub use unity_image::gltforge_image_bytes;
pub use unity_image::gltforge_image_count;
pub use unity_image::gltforge_image_name;
pub use unity_image::gltforge_image_uri;
pub use unity_mesh::gltforge_mesh_count;
pub use unity_mesh::gltforge_mesh_index_format;
pub use unity_mesh::gltforge_mesh_name;
pub use unity_mesh::gltforge_mesh_normals;
pub use unity_mesh::gltforge_mesh_positions;
pub use unity_mesh::gltforge_mesh_tangents;
pub use unity_mesh::gltforge_mesh_uv_channel_count;
pub use unity_mesh::gltforge_mesh_uvs;
pub use unity_mesh::gltforge_mesh_vertex_count;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_alpha_cutoff;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_alpha_mode;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_base_color_factor;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_base_color_texture;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_count;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_cull;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_emissive_factor;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_emissive_texture;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_metallic_factor;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_metallic_roughness_texture;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_name;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_normal_scale;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_normal_texture;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_occlusion_strength;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_occlusion_texture;
pub use unity_pbr_metallic_roughness::gltforge_pbr_metallic_roughness_roughness_factor;
pub use unity_scene::gltforge_root_game_object_count;
pub use unity_scene::gltforge_root_game_object_index;
pub use unity_scene::gltforge_scene_name;
pub use unity_submesh::gltforge_mesh_submesh_count;
pub use unity_submesh::gltforge_mesh_submesh_indices_u16;
pub use unity_submesh::gltforge_mesh_submesh_indices_u32;
pub use unity_submesh::gltforge_mesh_submesh_material;

Modules§

convert
error
unity_game_object
unity_gltf
unity_image
unity_indices
unity_mesh
unity_pbr_metallic_roughness
unity_scene
unity_submesh

Structs§

UnityGameObject
A Unity-shaped glTF node. References children and meshes by index, mirroring the glTF node structure.
UnityImage
A glTF image entry.
UnityMesh
A Unity-shaped glTF mesh: one shared vertex array with N sub-meshes (one per glTF primitive). Maps directly to a UnityEngine.Mesh with subMeshCount sub-meshes.
UnityPbrMetallicRoughness
A glTF 2.0 PBR metallic-roughness material in Unity-ready form.
UnitySubMesh
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.
UnityTransform
The local transform of a Unity node, pre-converted to Unity’s left-handed coordinate system.

Enums§

UnityIndices
Index buffer format, selected per primitive based on vertex count.

Constants§

ALPHA_MODE_BLEND
ALPHA_MODE_MASK
ALPHA_MODE_OPAQUE
Alpha mode constants for UnityPbrMetallicRoughness::alpha_mode.
IDENTITY