// SPDX-FileCopyrightText: 2024 Unity Technologies and the glTFast authors // SPDX-License-Identifier: Apache-2.0 using System; namespace GLTFast { /// /// Represents a material slot. /// public interface IMaterialsVariantsSlot { /// /// 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. /// /// Materials variant index. /// Corresponding glTF material index. int GetMaterialIndex(int variantIndex); } }