Skip to main content

gltforge_unity_core/
unity_image.rs

1/// A glTF image entry.
2pub struct UnityImage {
3    /// The image name. Falls back to the image index as a string if unnamed.
4    pub name: String,
5
6    /// The URI of the image, if it references an external file.
7    /// `None` for buffer-view-embedded images (e.g. GLB).
8    pub uri: Option<String>,
9
10    /// The raw encoded image bytes (PNG, JPEG, …) for buffer-view-embedded images.
11    /// `None` when the image is URI-based.
12    pub bytes: Option<Vec<u8>>,
13}