docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IMaterialsVariantsSlot

    Represents a material slot.

    Namespace: GLTFast
    Assembly: glTFast.dll
    Syntax
    public interface IMaterialsVariantsSlot

    Methods

    GetMaterialIndex(int)

    Provides the glTF material index, given a materials variant index. If variantIndex is invalid (e.g. negative) or the slot does not have a material override for the given variantIndex, it returns the default material index.

    Declaration
    int GetMaterialIndex(int variantIndex)
    Parameters
    Type Name Description
    int variantIndex

    Materials variant index.

    Returns
    Type Description
    int

    Corresponding glTF material index.

    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)