GltfImage Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Image data used to create a texture. Image can be referenced by URI or
bufferView
index. mimeType
is required in the latter case.
https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/image.schema.json
public ref class GltfImage : Microsoft::MixedReality::Toolkit::Utilities::Gltf::Schema::GltfChildOfRootProperty
[System.Serializable]
public class GltfImage : Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema.GltfChildOfRootProperty
[<System.Serializable>]
type GltfImage = class
inherit GltfChildOfRootProperty
Public Class GltfImage
Inherits GltfChildOfRootProperty
- Inheritance
- Attributes
buffer |
The index of the bufferView that contains the image. Use this instead of the image's uri property. |
Extensions |
https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/extension.schema.json (Inherited from GltfProperty) |
Extras |
https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/extras.schema.json (Inherited from GltfProperty) |
mime |
The image's MIME type. 1 |
name |
The user-defined name of this object. This is not necessarily unique, e.g., an accessor and a buffer could have the same name, or two accessors could even have the same name. (Inherited from GltfChildOfRootProperty) |
uri |
The uri of the image. Relative paths are relative to the .gltf file. Instead of referencing an external file, the uri can also be a data-uri. The image format must be jpg, png, bmp, or gif. |
Texture |
Unity Texture2D wrapper for the GltfImage |
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |