Class Image
Image data used to create a texture.
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class Image : NamedObject
Properties
AdditionalProperties
Additional properties on glTF JSON objects. Those properties may have been added by a new, unsupported version of the glTF specification. For extending glTF, please use extensions or extras instead.
Declaration
[JsonIgnore]
public ReadOnlyProperties AdditionalProperties { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyProperties |
BufferView
The index of the bufferView that contains the image. Use this instead of the image's uri property.
Declaration
[JsonPropertyName("bufferView")]
public int? BufferView { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Extensions
JSON object with extension-specific objects.
Declaration
[JsonPropertyName("extensions")]
public ImageExtensions Extensions { get; set; }
Property Value
| Type | Description |
|---|---|
| ImageExtensions |
See Also
Extras
Application-specific data.
Declaration
[JsonPropertyName("extras")]
[JsonConverter(typeof(ExtrasConverter))]
public ExtrasContainer Extras { get; set; }
Property Value
| Type | Description |
|---|---|
| ExtrasContainer |
See Also
MimeType
The image's MIME type.
Declaration
[JsonPropertyName("mimeType")]
[JsonConverter(typeof(ImageMimeTypeValueConverter))]
public EnumOrRawValue<ImageMimeType> MimeType { get; set; }
Property Value
| Type | Description |
|---|---|
| EnumOrRawValue<ImageMimeType> |
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.
Declaration
[JsonPropertyName("uri")]
public UriValue Uri { get; set; }
Property Value
| Type | Description |
|---|---|
| UriValue |