Skip to content

Simplygon Subsystem for C++

Subsystem Methods

NameDescription
IsJobResultAvailableChecks if the job with the given job id has completed and if its result is available to fetch.
WaitForJobToCompleteWaits until the specified job is finished. Returns directly if no job with the given ID has been scheduled.
WaitForAllJobsToCompleteWaits until all scheduled subsystem jobs are finished.
ExportActorsToSceneRun an async export job of the given actors using the given export settings.
ExportStaticMeshComponentsToSceneRun an async export job for the given static mesh components using the given export settings.
ExportStaticMeshToSceneRun an async export job for the given static mesh using the given export settings.
RetrieveExportSceneResultRetrieves the result of a job created using the Export[Actors
ImportSceneAsActorsRun an async import job using the given import settings to spawn imported actors into the given world.
ImportSceneAsStaticMeshesRun an async import job using the given import settings to import Static Meshes into the project.
RetrieveImportSceneResultRetrieves the result of a job created using the ImportScene function.
GetNativeOnExportSceneCompletedReturns handle to delegate that will get triggered when an export job is completed.
GetNativeOnImportSceneCompletedReturns handle to delegate that will get triggered when an import job is completed.

Subsystem Properties

NameDescription
OnExportSceneCompletedDelegate type for triggering when an export job is completed.
OnImportSceneCompletedDelegate type for triggering when an import job is completed.

Data structs

NameDescription
FSubsystemJobResultStruct holding a result coming out of a SimplygonSubsystem job.
FExportSceneResultThe result coming out of an Export[Actors
FImportSceneResultThe result coming out of an ImportScene SimplygonSubsystem job.
FSgSceneImportSettingsImport settings to use when importing a Simplygon scene.
FSgGeometryImportSettingsImport settings to use when importing a Simplygon geometry data to a FMeshDescription.
FSgMaterialImportSettingsImport settings to use when importing a Simplygon material to UMaterialInterface.
FSgComponentExportSettingsExport settings to use when exporting a UStaticMeshComponent.
FSgGeneralExportSettingsGeneral export settings
FSgMeshExportSettingsSettings used to setup Simplygon API scene when exporting an individual UStaticMesh.
FSgSceneMeshExportSettingsSettings used to setup Simplygon API scene when exporting a UStaticMesh as part of a scene.
FSgSceneExportSettingsExport settings to use when exporting a Simplygon scene.
FSgGeometryExportSettingsExport settings for geometry data to use when exporting a Simplygon scene.
FSgMaterialExportSettingsExport settings for material data to use when exporting a Simplygon scene.
FSgMaterialPropertiesThe material properties that are enabled will get flattened to textures, and exported with the scene.

Enums

NameDescription
ESgSeparateMaterialsModeThe material separation mode to use when there is unique data sampled in a material.
ESgSourceModelExportModeThis enum specifies which source model to export.

Functions details

IsJobResultAvailable

Checks if the job with the given job id has completed and if its result is available to fetch.

WaitForJobToComplete

Waits until the specified job is finished. Returns directly if no job with the given ID has been scheduled.

WaitForAllJobsToComplete

Waits until all scheduled subsystem jobs are finished.

ExportActorsToScene

Run an async export job of the given actors using the given export settings. Possible to bind a delegate callback to the OnExportSceneCompleted (from Python/Blueprints) or add a delegate to the native callback using GetNativeOnExportSceneCompleted (C++) which will be called when the export job is finished.

ExportStaticMeshComponentsToScene

Run an async export job for the given static mesh components using the given export settings. Possible to bind a delegate callback to the OnExportSceneCompleted (from Python/Blueprints) or add a delegate to the native callback using GetNativeOnExportSceneCompleted (C++) which will be called when the export job is finished.

ExportStaticMeshToScene

Run an async export job for the given static mesh using the given export settings. Possible to bind a delegate callback to the OnExportSceneCompleted (from Python/Blueprints) or add a delegate to the native callback using GetNativeOnExportSceneCompleted (C++) which will be called when the export job is finished.

RetrieveExportSceneResult

Retrieves the result of a job created using the Export[Actors|StaticMeshComponents|StaticMesh]ToScene function. May include errors that should be checked before working with the data. Will wait until the job is completed if it hasn't already. If you don't want to implement a synchronous workflow, use the matching callback which will get the result directly or make sure to create all your Export[Actors|StaticMeshComponents|StaticMesh] jobs before retrieving the result for any of them.

ImportSceneAsActors

Run an async import job using the given import settings to spawn imported actors into the given world. Possible to bind a delegate callback to the OnImportSceneCompleted (from Python/Blueprints) or add a delegate to the native callback using GetNativeOnImportSceneCompleted (C++) which will be called when the import job is finished.

ImportSceneAsStaticMeshes

Run an async import job using the given import settings to import Static Meshes into the project. Possible to bind a delegate callback to the OnImportSceneCompleted (from Python/Blueprints) or add a delegate to the native callback using GetNativeOnImportSceneCompleted (C++) which will be called when the import job is finished.

RetrieveImportSceneResult

Retrieves the result of a job created using the ImportScene function. May include errors that should be checked before working with the data. Will wait until the job is completed if it hasn't already. If you don't want to implement a synchronous workflow, use the matching callback which will get the result directly or make sure to create all your ImportScene jobs before retrieving the result for any of them.

GetNativeOnExportSceneCompleted

Returns handle to delegate that will get triggered when an export job is completed.

GetNativeOnImportSceneCompleted

Returns handle to delegate that will get triggered when an import job is completed.

Properties details

OnExportSceneCompleted

Delegate type for triggering when an export job is completed.

OnImportSceneCompleted

Delegate type for triggering when an import job is completed.

Data structs details

FSubsystemJobResult

Struct holding a result coming out of a SimplygonSubsystem job. FSubsystemJobResult is the base abstract class holding everything common between the different types of jobs.

FExportSceneResult

The result coming out of an Export[Actors|StaticMeshComponents|StaticMesh]ToScene SimplygonSubsystem job.

FImportSceneResult

The result coming out of an ImportScene SimplygonSubsystem job.

FSgSceneImportSettings

Import settings to use when importing a Simplygon scene.

FSgGeometryImportSettings

Import settings to use when importing a Simplygon geometry data to a FMeshDescription.

FSgMaterialImportSettings

Import settings to use when importing a Simplygon material to UMaterialInterface.

FSgComponentExportSettings

Export settings to use when exporting a UStaticMeshComponent.

FSgGeneralExportSettings

General export settings

FSgMeshExportSettings

Settings used to setup Simplygon API scene when exporting an individual UStaticMesh.

FSgSceneMeshExportSettings

Settings used to setup Simplygon API scene when exporting a UStaticMesh as part of a scene.

FSgSceneExportSettings

Export settings to use when exporting a Simplygon scene.

FSgGeometryExportSettings

Export settings for geometry data to use when exporting a Simplygon scene.

FSgMaterialExportSettings

Export settings for material data to use when exporting a Simplygon scene.

FSgMaterialProperties

The material properties that are enabled will get flattened to textures, and exported with the scene.

Enums details

ESgSeparateMaterialsMode

The material separation mode to use when there is unique data sampled in a material.

ESgSourceModelExportMode

This enum specifies which source model to export.