Class GltfUnlitMaterialExporter
Converts Unity Materials that use the glTFast shader glTF/Unlit to glTF materials
Implements
Inherited Members
Namespace: GLTFast.Export
Assembly: glTFast.Export.dll
Syntax
public class GltfUnlitMaterialExporter : IMaterialExport
Methods
ConvertMaterial(Material, out Material, IGltfWritable, ICodeLogger)
Converts a Unity material to a glTF material.
Declaration
public bool ConvertMaterial(Material unityMaterial, out Material material, IGltfWritable gltf, ICodeLogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| Material | unityMaterial | |
| Material | material | Resulting material |
| IGltfWritable | gltf | Associated IGltfWriter. Is used for adding images and textures. |
| ICodeLogger | logger | Logger used for reporting |
Returns
| Type | Description |
|---|---|
| bool | True if no errors occured, false otherwise |