Black CraftDev

Docs/Materials

Batch Material Creator

One material per folder of textures, on the pipeline default shader or any shader with its own map bindings.

EditionPro only · launching soonMenuTools›BlackCraft›Hexbench›Materials›Batch Material CreatorClassBatchMaterialCreator

Makes one material for each folder of textures you give it.

Open it with Tools›BlackCraft›Hexbench›Materials›Batch Material Creator.

  1. Drag the source folders in. Each folder that contains textures becomes a material with the folder's name.
  2. Pick the Shader. It starts on the Pipeline Default set on the Material Profiles page under Tools›BlackCraft›Settings, and any other shader works too.
  3. Look over Map Bindings, which say which texture-name suffix feeds which shader property. Re-detect rebuilds them from the shader. Your edits are remembered per shader.
  4. If you want to reuse a set of bindings, save it under Preset as a MaterialMapProfile asset. New Profile... stores the current bindings and Update overwrites the loaded preset. The list shows every preset saved for the active pipeline.
  5. Press Create Materials.

If the output folder does not exist yet, you are asked before it is created. Ticking Don't ask again in that dialog makes it create the folder without asking from then on; Tools›BlackCraft›Help›Show Hidden Dialogs turns the question back on.

Textures are matched to slots by their name suffix (_Albedo, _Normal, _Mask and so on), following the active map profile's naming. A folder with nothing the profile recognises is skipped and listed.

Under Options there is Delete Unused Textures. Once a folder's material exists, it removes the textures in that folder that no map picked up. Anything the material references is kept, as are the inputs to generated textures such as roughness and opacity. The files are deleted outright, so back up first.

batchcreate materialsfoldersbindingsshader maps