/UnityTexturesToMultipleOf4

Expand selected textures in a Unity project to the nearest multiple of 4 (needed for certain kinds of compression). Must be pngs, adds extra transparent pixels.

Primary LanguageC#

UnityTexturesToMultipleOf4

Modify textures in a unity project so their width and height are multiples of 4, by adding extra transparent pixels at the edges. (Mutliple of 4 dimensions needed for certain kinds of compression).

Usage

  • Backup your Unity project (in case something goes wrong)
  • Add the script to the project
  • Select the textures you want to expand (must be pngs)
  • In the menu, choose Assets/Pad texture to multiple of 4 Done