Method ExportObject
ExportObject(string, Object, ExportModelOptions)
Exports a single Unity GameObject to an FBX file, with the specified export settings.
Declaration
public static string ExportObject(string filePath, Object singleObject, ExportModelOptions exportOptions = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath | Absolute file path to use for the FBX file. |
| Object | singleObject | The Unity GameObject to export. |
| ExportModelOptions | exportOptions | The export options to use. |
Returns
| Type | Description |
|---|---|
| string | The FBX file path if successful; otherwise null. |
ExportObject(string, Object)
Exports a single Unity GameObject to an FBX file.
Declaration
public static string ExportObject(string filePath, Object singleObject)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath | Absolute file path to use for the FBX file. |
| Object | singleObject | The Unity GameObject to export. |
Returns
| Type | Description |
|---|---|
| string | The FBX file path if successful; otherwise null. |