Black CraftDev

Docs/Materials

Material Replacer

Swap one material for another everywhere it is referenced, after a dry run that lists exactly what will change.

EditionPro only · launching soonMenuTools›BlackCraft›Hexbench›Materials›Material ReplacerClassMaterialReplacerWindow

Repoints every reference to one or more materials at a replacement.

Open it with Tools›BlackCraft›Hexbench›Materials›Material Replacer.

  1. Add the materials you want to replace (Add Selected takes them from the Project window), then set the replacement.
  2. Choose the Scope. The project means every prefab, scene and scriptable object that depends on the material; the other options are the open scenes or the selection.
  3. Press Find. The list shows each reference: renderer slots, UI graphics, terrain templates and fields on your own components.
  4. Untick anything that should keep its material and press Replace Selected.

Some scene objects only inherit their material from a prefab. Writing to them would pin the old value as an override, so they are left alone and listed as inherited. If Follow Prefab Instances is on, the prefab they come from is queued for replacement.

Scenes that are closed get opened, edited and saved. Scenes that are already open are edited in place with undo and left unsaved.

replaceswapreferencesprefabsscenesdry run