# Exporting Materials

When exporting a material, using either the Export submenu or the command line arguments, Material Maker generates PNG image files for all elements of the material as well as specific files for the target game engine.

In all cases, the generated PNG files (and especially the normal map) are generated in the correct format.

## Godot game engine

When exporting for the Godot game engine, Material Maker will generate a .tres file that describes a fully configured SpatialMaterial.

## Unity game engine

When exporting for the Unity game engine, Material Maker will generate a .mat file that describes a fully configured material. It is thus possible to export materials directly into one of your project assets directory, and Unity will automatically detect the newly exported materials.

Depending one the Material node type, several Unity targets may be available.

## Unreal game engine

When exporting for the Unreal game engine, Material Maker will only generate PNG images and a .mm2ue file. The material must be built manually inside the Unreal Engine editor by following the instructions in this file.

This will generally consist in:

- Copying a material file from the export directory in Material Maker installation

- in the newly created material:

  - assigning generated textures

  - copying the shader generated in the .mm2ue file into a Custom node

  - creating new inputs in the custom node and TextureObject nodes, assigning the textures and connecting them