This editor takes an FBX with multiple materials and flattens it into a single material, then exports a new FBX. Intended to use with Kenney assets.
Make sure to have the FBX Exporter package installed.
- Tools -> Flatten Materials
- Select a folder with one or more FBX files
- Convert Objects
- Select a folder to ouput your new FBX files
There are a few ways to correct this depending on the intended game engine. If the engine lets you choose the filtering of a texture, change the generated texture filtering to Point and turn off compression. If it doesn't, you can either scale the generated texture up with the Texture Size option or increase the padding of the UVs, or both!
Install via Git URL
-
In your Unity project, open the
Package Manager
window. -
The options for adding packages appear.
-
Select Add package from git URL from the add menu. A text box and an Add button appear.
-
Enter
https://github.com/EndersWilliam/Unity-Material-Flattener.git
in the text box and click Add -
Add the FBX Exporter preview package from the Unity Registry.
TextureScale script script by Eric Haines.