Method AddMaterial
AddMaterial(Material, out int, IMaterialExport)
Adds a Unity material
Declaration
bool AddMaterial(Material uMaterial, out int materialId, IMaterialExport materialExport)
Parameters
Type | Name | Description |
---|---|---|
Material | uMaterial | Unity material |
int | materialId | glTF material index |
IMaterialExport | materialExport | Material converter |
Returns
Type | Description |
---|---|
bool | True if converting and adding material was successful, false otherwise |