The Export to Unity node can be used to export materials from ArtEngine and then import them into the Unity Editor using the ArtEngine Importer plugin available on the Unity Asset Store.
ArtEngine exports materials in an AMTL file format. An AMTL file is effectively a zipped package of your material which includes all of its bitmaps. The ArtEngine Importer plugin then reads the AMTL file and creates the material in Unity, appropriately assigning the textures in the material shader.
To export any material from ArtEngine, you can follow these steps:
In order to import AMTL files into Unity, you will first need to install the ArtEngine Importer package from the Unity Asset Store. The importer package is only available for Unity versions 2019.4 or higher. You can learn more about using the Unity Asset Store and installing packages on this page.
Once you have the ArtEngine Importer package installed in your Unity project, you can follow these steps to import any AMTL material into the Unity Editor:
Node category | Output |
---|---|
Node execution style | Manual |
Input Name | Input Type | Description |
---|---|---|
Input | Material | The material you wish to export for use in Unity. |
Property/Setting | Description |
---|---|
File name | Set the name of the output AMTL file. The dropdown to the right of this field lets you select the file format of the individual texture maps in the material. The choices are PNG or JPG. |
Folder path | Set the export destination folder. |
Overwrite Existing | Enable this option to let ArtEngine automatically overwrite any files in the output Folder path that have the same file names. |
Export | Click this button to execute the export operation. |