Method ExportTextureInfo
ExportTextureInfo(Texture, IGltfWritable, ImageFormat)
Export a Unity texture to a glTF.
Declaration
protected static TextureInfo ExportTextureInfo(Texture texture, IGltfWritable gltf, ImageFormat format = ImageFormat.Unknown)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture | texture | Texture to export. |
| IGltfWritable | gltf | Context glTF to export to |
| ImageFormat | format | Desired image format |
Returns
| Type | Description |
|---|---|
| TextureInfo | glTF texture info |