Bump Mapping problem

So, I imported a texture and a bump map for a block of dirt I was working on, made a material and added the texture and the bump map. Then I started messing around with some stuff, and clicked on the “Create from grayscale” button in the bump map import settings in the inspector. For whatever reason, that gave me an AWESOME dirt texture. Now, I want to save the new bump map as a png or whatever, but the original file doesn’t change no matter what I do.

Is there a way to export the new normal/bump map as a png?

Thanks!

We had this awhile back, you can try this (just remember it comes out as a gray picture):

Texture2D tex = <YOUR TEXTURE>;
System.IO.File.WriteAllBytes("/testing.png",tex.EncodeToPNG());

If that doesn’t give you what you want, check out this:

http://www.crazybump.com

Thanks! What would I do with that code, though?

make the tex a public variable in a script, add the other line to the start function.