public class GLTFSaveOptions extends SaveOptions
Modifier and Type | Field and Description |
---|---|
boolean |
prettyPrint
The JSON content of GLTF file is indented for human reading, default value is false
|
Constructor and Description |
---|
GLTFSaveOptions(FileContentType contentType)
Constructor of
GLTFSaveOptions |
GLTFSaveOptions(FileFormat format)
Constructor of
GLTFSaveOptions |
Modifier and Type | Method and Description |
---|---|
String |
getBufferFile()
The file name of the external buffer file used to store binary data.
|
boolean |
getDracoCompression()
Gets whether to enable draco compression
|
boolean |
getEmbedAssets()
Embed all external assets as base64 into single file in ASCII mode, default value is false.
|
boolean |
getFlipTexCoordV()
Flip texture coordinate v(t) component, default value is true.
|
MaterialConverter |
getMaterialConverter()
Custom converter to convert the geometry's material to PBR material
If this is unassigned, glTF 2.0 exporter will automatically convert the standard material to PBR material.
|
boolean |
getSaveExtras()
Save scene object's dynamic properties into 'extra' fields in the generated glTF file.
|
boolean |
getUseCommonMaterials()
Serialize materials using KHR common material extensions, default value is false.
|
void |
setBufferFile(String value)
The file name of the external buffer file used to store binary data.
|
void |
setDracoCompression(boolean value)
Sets whether to enable draco compression
|
void |
setEmbedAssets(boolean value)
Embed all external assets as base64 into single file in ASCII mode, default value is false.
|
void |
setFlipTexCoordV(boolean value)
Flip texture coordinate v(t) component, default value is true.
|
void |
setMaterialConverter(MaterialConverter value)
Custom converter to convert the geometry's material to PBR material
If this is unassigned, glTF 2.0 exporter will automatically convert the standard material to PBR material.
|
void |
setSaveExtras(boolean value)
Save scene object's dynamic properties into 'extra' fields in the generated glTF file.
|
void |
setUseCommonMaterials(boolean value)
Serialize materials using KHR common material extensions, default value is false.
|
getFileName, getFileSystem, getLookupPaths, lookupForFile, setFileName, setFileSystem, setLookupPaths
public boolean prettyPrint
public GLTFSaveOptions(FileContentType contentType)
GLTFSaveOptions
contentType
- public GLTFSaveOptions(FileFormat format)
GLTFSaveOptions
format
- public boolean getEmbedAssets()
public void setEmbedAssets(boolean value)
value
- New valuepublic MaterialConverter getMaterialConverter()
public void setMaterialConverter(MaterialConverter value)
value
- New valuepublic boolean getUseCommonMaterials()
getExportShaders()
public void setUseCommonMaterials(boolean value)
getExportShaders()
value
- New valuepublic boolean getFlipTexCoordV()
public void setFlipTexCoordV(boolean value)
value
- New valuepublic String getBufferFile()
public void setBufferFile(String value)
value
- New valuepublic boolean getSaveExtras()
public void setSaveExtras(boolean value)
value
- New valuepublic boolean getDracoCompression()
public void setDracoCompression(boolean value)
value
- New value