mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class GltfImage

    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

    Inheritance
    Object
    GltfProperty
    GltfChildOfRootProperty
    GltfImage
    Inherited Members
    GltfChildOfRootProperty.name
    GltfProperty.Extensions
    GltfProperty.Extras
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema
    Assembly: cs.temp.dll.dll
    Syntax
    public class GltfImage : GltfChildOfRootProperty

    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
    Int32

    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
    Int32

    mimeType

    The image's MIME type. 1

    Declaration
    public string mimeType
    Field Value
    Type Description
    String

    mimeType

    The image's MIME type. 1

    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

    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

    Properties

    Texture

    Unity Texture2D wrapper for the GltfImage

    Declaration
    public Texture2D Texture { get; }
    Property Value
    Type Description
    Texture2D

    Texture

    Unity Texture2D wrapper for the GltfImage

    Declaration
    public Texture2D Texture { get; }
    Property Value
    Type Description
    Texture2D
    In This Article
    • Fields
      • bufferView
      • bufferView
      • mimeType
      • mimeType
      • uri
      • uri
    • Properties
      • Texture
      • Texture
    Back to top Generated by DocFX