docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddTexture

    AddTexture(int, int)

    Creates a glTF texture from with a given image index

    Declaration
    public int AddTexture(int imageId, int samplerId)
    Parameters
    Type Name Description
    int imageId

    glTF image index returned by AddImage(ImageExportBase)

    int samplerId

    glTF sampler index returned by AddSampler(FilterMode, TextureWrapMode, TextureWrapMode)

    Returns
    Type Description
    int

    glTF texture index

    Implements
    IGltfWritable.AddTexture(int, int)
    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)