docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ImageResult

    Imported glTF image containing a Texture2D and metadata.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: GLTFast
    Assembly: glTFast.dll
    Syntax
    public struct ImageResult

    Constructors

    ImageResult(Texture2D, bool)

    Default Image constructor.

    Declaration
    public ImageResult(Texture2D texture, bool isYFlipped = false)
    Parameters
    Type Name Description
    Texture2D texture

    Imported texture.

    bool isYFlipped

    Must be true if texture is flipped vertically.

    Properties

    IsYFlipped

    If true, the image is flipped vertically.

    Declaration
    public readonly bool IsYFlipped { get; }
    Property Value
    Type Description
    bool

    Null

    Empty image. Indicates a failed load.

    Declaration
    public static ImageResult Null { get; }
    Property Value
    Type Description
    ImageResult

    Texture

    Imported texture.

    Declaration
    public readonly Texture2D Texture { get; }
    Property Value
    Type Description
    Texture2D
    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)