ExportNormalmap

Author: Eric Haines (Eric5h5)

Description
Exports a normalmap from your project as a .png file. When a grayscale texture is converted by Unity to a normalmap, opening it simply gives you the original texture. But you can use this script instead to export the actual converted texture. (Technically this will export any texture as a .png, not just normalmaps, if you wanted to do that for some reason.)

Usage
You must place the script in a folder named Editor in your project's Assets folder for it to work.

To save a normalmap, click on the texture in your project, then select the Export Normalmap... item in the Assets menu. If the texture is not marked "Is Readable", this script will override that, but you'll get a dialog about unapplied import settings--choose "Apply" to keep the texture not readable, or Revert to change it to readable. The script will work either way. Then choose somewhere to save the normalmap.