Black CraftDev

Docs/Textures

Texture Converter

Batch-convert textures by format, quality, size and suffix, written beside the originals, to a folder, or in place.

EditionLite and ProMenuTools›BlackCraft›Hexbench›Textures›Texture ConverterClassBatchTextureConverterWindow

Converts a batch of textures in one pass.

Open it with Tools›BlackCraft›Hexbench›Textures›Texture Converter. The row menus in the Texture Auditor and Texture Budget can send a texture here too.

  1. Drag textures or folders into the Textures list, or select them in the Project window and press Add Selected. Clicking a name pings it. To take rows out, select them and press Delete, or use the remove button on the row.
  2. Under Output, pick the Format. If that format would lose a texture's transparency, Preserve Alpha writes that texture as PNG instead. Normal maps are always written as PNG and re-imported as normal maps.
  3. Under Resize, Max Dimension shrinks only textures larger than the cap and keeps their aspect ratio. Fixed Resolution stretches every texture to one size.
  4. In Naming, Append Suffix adds the suffix to each converted file, and the line below previews the first texture's new name.
  5. Choose a Destination. Beside Originals writes new files next to each source without overwriting any. Folder puts everything in one folder in the project. Overwrite Originals replaces the source files once you confirm.
  6. Press Convert.

PNG, JPG, TGA and EXR files are read from disk at full size, so the import's Max Size and compression do not carry into the output. Other formats, such as PSD and TIFF, are read as Unity imported them.

The footer then reports how many files were written and how much smaller or larger the batch got. Send To offers the new files to other tools, and Compare With Source opens any of them against the file it came from. If there are several results, Send To > Texture Compare compares one of them with its source: the one whose source is selected in the list, or else the first.

A file cannot change extension in place. So when you overwrite with a different output format, the result is written next to the original with the new extension, and the original stays. Turn on Update Materials to repoint every material that used the original at the new file.

Before deleting any originals, have a look at the converted files in Texture Compare, which shows the two side by side with a difference heatmap and the memory each one takes.

convertbatchpngjpgtgaresizeformat