Hi Everyone,
I am experimenting with ProceduralMaterials and specifically with the method “GetGeneratedTextures()”.
The method returns an Array of ProceduralTextures.
I am searching for a way to save the content of the ProceduralTexture to disk. Preferably as PNG or JPEG.
In the Unity Editor there is a menu option (in the context menu of the ProceduralMaterial component) called “Export Bitmaps”.
Is there a way to call this from within a script file?
My goal is to automate the process of setting certain properties on the material, rebuild the textures and then save them to disk.
Thanks
This only works for Texture2D. Texture and ProceduralTexture don't have this method.
– themipper