ThreePipe
    Preparing search index...

    Interface MaterialVariations

    interface MaterialVariations {
        _animation?: AnimationResult;
        data?: { icon?: string; [key: string]: any }[];
        materials: IMaterial<IMaterialEventMap>[];
        preview:
            | (keyof PhysicalMaterial<IMaterialEventMap>)
            | "generate:sphere"
            | "generate:cube"
            | "generate:cylinder";
        regex?: boolean;
        selectedIndex?: string | number;
        timeline?: { duration?: number; index: string | number; time: number }[];
        title: string;
        uuid: string;
    }
    Index

    Properties

    _animation?: AnimationResult
    data?: { icon?: string; [key: string]: any }[]
    preview:
        | (keyof PhysicalMaterial<IMaterialEventMap>)
        | "generate:sphere"
        | "generate:cube"
        | "generate:cylinder"
    regex?: boolean

    Whether to use regex to match the material name.

    true
    
    selectedIndex?: string | number
    timeline?: { duration?: number; index: string | number; time: number }[]

    Keyframes for the viewer timeline animation

    title: string

    Title to show in the UI

    uuid: string

    The name or the uuid of the material in the scene