Bake Material to Texture

Author: ReJ aka Renaldas Zioma

Description
Allows to bake complex materials into a single texture. Can be useful for converting assets from Desktop to Mobile

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

Select Material asset, then choose "Custom/Bake Material ..." menu item. Editor window will open where you can tweak additional lighting and setup texture parameters. Press "Bake" button to save results. Script will generate Texture asset next to original Material asset.

Select multiple Material assets, then choose "Custom/Bake Materials" menu item to bake them all.