docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddSampler

    AddSampler(FilterMode, TextureWrapMode, TextureWrapMode)

    Creates a glTF sampler based on Unity filter and wrap settings

    Declaration
    int AddSampler(FilterMode filterMode, TextureWrapMode wrapModeU, TextureWrapMode wrapModeV)
    Parameters
    Type Name Description
    FilterMode filterMode

    Texture filter mode

    TextureWrapMode wrapModeU

    Texture wrap mode in U direction

    TextureWrapMode wrapModeV

    Texture wrap mode in V direction

    Returns
    Type Description
    int

    glTF sampler index or -1 if no sampler is required

    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)