Black CraftDev

Docs/Materials

Create From Selection

Make one material from the textures selected in the Project window, for URP, HDRP, Standard or a shader you choose.

EditionPro only · launching soonMenuTools›BlackCraft›Hexbench›Materials›Create From Selection›MaterialClassCreateMaterialWindow

Select some textures in the Project window, right-click and choose BlackCraft > Create Material. The same command is under Tools›BlackCraft›Hexbench›Materials›Create From Selection›Material.

Each texture goes to a slot based on its name, and the material is named after the textures and saved next to them. A texture whose name has no map keyword in it is used as the albedo.

There is a single entry for every pipeline. It builds on the Pipeline Default from the Material Profiles settings page for whatever pipeline the project uses. For a different shader, see Choose Shader... below.

However the material is made, Smoothness starts at 0.5. With a metallic map it scales the map's alpha, and a map saved without alpha reads as 1 there. If you want an authored alpha kept exactly as painted, set that binding's Default to 1.

Shortcuts

Ctrl+M runs Create Material on the textures selected in the Project window. It stays Ctrl on macOS, because Cmd+M minimises the window. With no textures selected it says so and does nothing.

Saved profiles can have keys too. Each profile card under Saved Profiles (see Profiles below) has a Shortcut slot, and there are five slots, all unbound to begin with. A slot can only belong to one profile, so choosing one that another profile holds moves it over. If a slot's profile is for a different pipeline, pressing it tells you so and creates nothing.

The keys themselves are set in Edit > Shortcuts (Unity > Shortcuts on macOS) under the Hexbench category, and Rebind... on a card takes you there. Key bindings live in your own Unity shortcut profile, so everyone on a team picks their own keys. Which profile holds which slot is saved with the project.

Choose Shader

Create Material (Choose Shader...) opens a window first. It tracks the Project window selection and shows which shader property each texture will land on, so you can spot an unmapped texture before anything is written. Problems are tagged:

  • bind: the map kind was recognised, but this shader has no property bound for it. Bind one under Map Bindings.
  • unused: none of the map names matched. Add a filename fragment under Map Bindings.
  • missing: the binding names a property the shader lacks, so writing it would do nothing. Re-detect or rebind.
  • clash: an earlier texture already took that map.
  • guess: nothing looked like an albedo, so this texture is standing in.

Name and folder follow the selection until you type your own. Escape closes the window.

Profiles

Preset lists the saved map profiles for the current pipeline. To make one, pick a shader, adjust the bindings and press New Profile.... That writes a MaterialMapProfile asset and registers it, and from then on it is offered here and in the Batch Material Creator. Update overwrites the profile the preset came from.

Registered profiles also show up under BlackCraft > Create Material (Choose Profile...), which creates a material from that profile's shader and bindings in a single pick.

You manage them under Saved Profiles on Settings > Hexbench > Material Profiles. Add can create a profile for a shader you pick, with its bindings already detected, or register an existing MaterialMapProfile asset. On each card, In Menu decides whether the Choose Profile menu offers it, Shortcut is its keyboard slot, and the profile's own inspector edits what each map binds to. Profiles only appear while the project is on their pipeline.

Selecting a MaterialMapProfile asset in the Project window shows the same bindings editor in the Inspector, which is handy when you only want to tweak a profile.

Derived textures

In two cases a texture is written next to the sources as well as the material. A roughness map is inverted into a _Smoothness texture imported as data (sRGB off). An opacity map is merged into the albedo's alpha as a _Combined texture, unless the shader has an opacity slot of its own.

PNG, JPG and TGA sources are read from the file at full size, other formats through the GPU, and the import settings on your textures are left untouched. They are only rebuilt when a source is newer than the derived file.

create materialselectionurphdrpstandardcontext menumap profileshortcutctrl+m