Class AssetWriterOptions
Represents the options for writing assets during the export process.
Inherited Members
Namespace: TriLibExporter
Assembly: Assembly-CSharp.dll
Syntax
public class AssetWriterOptions : ScriptableObject
Fields
BakeEntireSceneAnimation
Determines whether to bake the entire scene's animation into the exported file.
Default value is false
.
Declaration
public bool BakeEntireSceneAnimation
Field Value
Type | Description |
---|---|
bool |
CloseStream
Determine whether the file stream should be closed automatically.
Default value is true
.
Declaration
public bool CloseStream
Field Value
Type | Description |
---|---|
bool |
EmbedTextures
Indicates whether to embed textures within the exported asset file.
Default value is false
.
Declaration
public bool EmbedTextures
Field Value
Type | Description |
---|---|
bool |
ExportAnimations
Determines whether animations should be exported along with the scene.
Default value is true
.
Declaration
public bool ExportAnimations
Field Value
Type | Description |
---|---|
bool |
ExportAsASCII
Should the model be exported as ASCII. Valid for FBX format only.
Declaration
public bool ExportAsASCII
Field Value
Type | Description |
---|---|
bool |
ExportCameras
Determines whether cameras should be exported along with the scene.
Default value is true
.
Declaration
public bool ExportCameras
Field Value
Type | Description |
---|---|
bool |
ExportInactiveGameObjects
Determine whether inactive Game Objects should be exported.
Default value is true
.
Declaration
public bool ExportInactiveGameObjects
Field Value
Type | Description |
---|---|
bool |
ExportLights
Determines whether lights should be exported along with the scene.
Default value is true
.
Declaration
public bool ExportLights
Field Value
Type | Description |
---|---|
bool |
ExportMaterials
Determines whether materials should be exported along with the scene.
Default value is true
.
Declaration
public bool ExportMaterials
Field Value
Type | Description |
---|---|
bool |
ExportSkinning
Determines whether skinning should be exported along with the scene.
Default value is true
.
Declaration
public bool ExportSkinning
Field Value
Type | Description |
---|---|
bool |
ExportTextures
Determines whether textures should be exported along with the scene.
Default value is true
.
Declaration
public bool ExportTextures
Field Value
Type | Description |
---|---|
bool |
ExportVisibility
Indicates whether to export object visibility settings.
Default value is false
.
Declaration
public bool ExportVisibility
Field Value
Type | Description |
---|---|
bool |
ExternalDataMapper
The external data mapper can map model resources to custom streams.
Declaration
public ExternalDataMapper ExternalDataMapper
Field Value
Type | Description |
---|---|
ExternalDataMapper |
MaterialMappers
The material mappers to use during the export process. Allows customization of how materials are exported.
Declaration
public ExporterMaterialMapper[] MaterialMappers
Field Value
Type | Description |
---|---|
ExporterMaterialMapper[] |
MergeVertices
Indicates whether to merge identical vertices during the export process.
Default value is true
.
Declaration
public bool MergeVertices
Field Value
Type | Description |
---|---|
bool |
PreserveInstances
Indicates whether to preserve object instances during the export.
Default value is true
.
Declaration
public bool PreserveInstances
Field Value
Type | Description |
---|---|
bool |
SceneAnimationLength
The length of the scene animation in seconds.
This is used when baking animations.
Default value is 60 seconds.
Only used when BakeEntireSceneAnimation is set to true
.
Declaration
public float SceneAnimationLength
Field Value
Type | Description |
---|---|
float |
SceneFramerate
The framerate for the scene animation in frames per second. This is used when baking animations. Default value is 60 frames per second.
Declaration
public float SceneFramerate
Field Value
Type | Description |
---|---|
float |
StartThreadsImmediately
Determines whether threads should start immediately during the asset writing process.
Default value is true
.
Declaration
public bool StartThreadsImmediately
Field Value
Type | Description |
---|---|
bool |
Timeout
The timeout duration in milliseconds for the asset writing process. Default value is 200 milliseconds.
Declaration
public int Timeout
Field Value
Type | Description |
---|---|
int |