Function uiConfigMaterialExtension

  • Creates a MaterialExtension with getUiConfig that also caches the config for the material based on uuid

    Parameters

    • getUiConfig: (
          material: IMaterial,
          refreshUi?: (
              deep?: boolean,
              mode?: TUiRefreshModes | "immediate",
              delay?: number,
          ) => void,
      ) => undefined | UiObjectConfig

      function that returns a ui config. make sure its static.

    • Optionaluuid: string

      uuid to use.

    Returns MaterialExtension