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: GLTFast.Schema
    Assembly: glTFast.dll
    Syntax
    [Serializable]
    public class Image : NamedObject

    Fields

    bufferView

    The index of the bufferView that contains the image. Use this instead of the image's uri property.

    Declaration
    public int bufferView
    Field Value
    Type Description
    int

    mimeType

    The image's MIME type.

    Declaration
    public string mimeType
    Field Value
    Type Description
    string

    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
    public string uri
    Field Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2024 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)