Interface MaterialVariations

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

Properties

data?: {
    icon?: string;
    [key: string]: any;
}[]

Type declaration

  • [key: string]: any
  • Optional icon?: string
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

Generated using TypeDoc