Interface MaterialVariations

interface MaterialVariations {
    data?: { icon?: string; [key: string]: any }[];
    materials: IMaterial[];
    preview:
        | (keyof PhysicalMaterial)
        | "generate:sphere"
        | "generate:cube"
        | "generate:cylinder";
    selectedIndex?: number;
    title: string;
    uuid: string;
}

Properties

data?: { icon?: string; [key: string]: any }[]
materials: IMaterial[]
preview:
    | (keyof PhysicalMaterial)
    | "generate:sphere"
    | "generate:cube"
    | "generate:cylinder"
selectedIndex?: number
title: string

Title to show in the UI

uuid: string

The name or the uuid of the material in the scene