docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Image

    Image data used to create a texture.

    Inheritance
    object
    NamedObject
    Image
    Inherited Members
    NamedObject.Name
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#reference-extension

    Extras

    Application-specific data.

    Declaration
    [JsonPropertyName("extras")]
    [JsonConverter(typeof(ExtrasConverter))]
    public ExtrasContainer Extras { get; set; }
    Property Value
    Type Description
    ExtrasContainer
    See Also
    https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#reference-extras

    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
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)