Class MaterialExport
Provides the default material export
Inherited Members
Namespace: Unity.Cloud.Gltfast.Export
Assembly: Unity.Cloud.Gltfast.Export.dll
Syntax
[MovedFrom(true, "GLTFast.Export", "glTFast.Export", null)]
public static class MaterialExport
Methods
GetDefaultMaterialExport()
Provides the default material exporter
Declaration
public static IMaterialExport GetDefaultMaterialExport()
Returns
| Type | Description |
|---|---|
| IMaterialExport | Default material export |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Is thrown when the default material export couldn't be determined based on the current render pipeline. |
TryAddImageExport(IGltfWritable, ImageExportBase, out int)
Adds an ImageExport to the glTF. No conversions or channel swizzling
Declaration
public static bool TryAddImageExport(IGltfWritable gltf, ImageExportBase imageExport, out int textureId)
Parameters
| Type | Name | Description |
|---|---|---|
| IGltfWritable | gltf | glTF to add the image to. |
| ImageExportBase | imageExport | Texture generator to be added |
| int | textureId | Resulting texture index; -1 when this returns false. |
Returns
| Type | Description |
|---|---|
| bool | True if the texture was added, false otherwise. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Can be thrown by the |