docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IDefaultImageFormatLoader

    Texture image loader that is able to load glTF core specification image formats (PNG and/or JPEG). Can be used to override the default loading (performed by the ImageConversion module). To add support for texture extensions that add support for an image format that's not in the glTF specification (i.e. that override the image source) use ITextureImageLoader instead.

    Inherited Members
    ITextureImageLoader.LoadImage(NativeArray<byte>.ReadOnly, bool, bool, bool, CancellationToken)
    ITextureImageLoader.IsAbleToLoad(TextureBase, out int)
    ITextureImageLoader.IsAbleToLoad(ReadOnlySpan<byte>)
    Namespace: GLTFast
    Assembly: glTFast.dll
    Syntax
    public interface IDefaultImageFormatLoader : ITextureImageLoader

    Methods

    IsAbleToLoad(ImageFormat)

    Determines if this loader can load the image format detected from glTF JSON clues (mimeType and URI file extension).

    Declaration
    bool IsAbleToLoad(ImageFormat format)
    Parameters
    Type Name Description
    ImageFormat format

    Source image format.

    Returns
    Type Description
    bool

    True if the implementation is able to load the given format, false otherwise.

    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)