Skip to content

Simplygon Subsystem for C++ ​

Subsystem Methods ​

NameDescription
IsTaskResultAvailableChecks if the task with the given task id has completed and if its result is available to fetch.
WaitForTaskToCompleteWaits until the specified task is finished. Returns directly if no task with the given ID has been scheduled.
WaitForAllTasksToCompleteWaits until all scheduled subsystem tasks are finished.
GetNumberOfCurrentlyRunningTasksReturns the number of tasks that are currently running in the background.
ExportActorsToSceneRun an async export task of the given actors using the given export settings.
ExportStaticMeshComponentsToSceneRun an async export task for the given static mesh components using the given export settings.
ExportStaticMeshToSceneRun an async export task for the given static mesh using the given export settings.
RetrieveExportSceneResultRetrieves the result of a task created using the Export[Actors
ImportSceneAsActorsRun an async import task using the given import settings to spawn imported actors into the given world.
RetrieveImportSceneAsActorsResultRetrieves the result of a task created using the ImportSceneAsActors function.
GetNativeOnTaskAddedReturns handle to delegate that will get triggered when any task is added.
GetNativeOnTaskCompletedReturns handle to delegate that will get triggered when any task is completed.
GetNativeOnExportSceneCompletedReturns handle to delegate that will get triggered when an export task is completed.
GetNativeOnImportSceneAsActorsCompletedReturns handle to delegate that will get triggered when an import task is completed.

Subsystem Properties ​

NameDescription
OnTaskAddedDelegate type for triggering when any task is added.
OnTaskCompletedDelegate type for triggering when any task is completed.
OnExportSceneCompletedDelegate type for triggering when an export task is completed.
OnImportSceneAsActorsCompletedDelegate type for triggering when an import task is completed.

Data structs ​

NameDescription
FSubsystemTaskResultStruct holding a result coming out of a SimplygonSubsystem task.
FExportSceneResultThe result coming out of an Export[Actors
FImportSceneAsActorsResultThe result coming out of an ImportSceneAsActors SimplygonSubsystem task.
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 ​

IsTaskResultAvailable ​

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

WaitForTaskToComplete ​

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

WaitForAllTasksToComplete ​

Waits until all scheduled subsystem tasks are finished.

GetNumberOfCurrentlyRunningTasks ​

Returns the number of tasks that are currently running in the background.

ExportActorsToScene ​

Run an async export task 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 task is finished.

ExportStaticMeshComponentsToScene ​

Run an async export task 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 task is finished.

ExportStaticMeshToScene ​

Run an async export task 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 task is finished.

RetrieveExportSceneResult ​

Retrieves the result of a task 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 task 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] tasks before retrieving the result for any of them.

ImportSceneAsActors ​

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

RetrieveImportSceneAsActorsResult ​

Retrieves the result of a task created using the ImportSceneAsActors function. May include errors that should be checked before working with the data. Will wait until the task 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 ImportSceneAsActors tasks before retrieving the result for any of them.

GetNativeOnTaskAdded ​

Returns handle to delegate that will get triggered when any task is added.

GetNativeOnTaskCompleted ​

Returns handle to delegate that will get triggered when any task is completed.

GetNativeOnExportSceneCompleted ​

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

GetNativeOnImportSceneAsActorsCompleted ​

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

Properties details ​

OnTaskAdded ​

Delegate type for triggering when any task is added.

OnTaskCompleted ​

Delegate type for triggering when any task is completed.

OnExportSceneCompleted ​

Delegate type for triggering when an export task is completed.

OnImportSceneAsActorsCompleted ​

Delegate type for triggering when an import task is completed.

Data structs details ​

FSubsystemTaskResult ​

Struct holding a result coming out of a SimplygonSubsystem task. FSubsystemTaskResult is the base abstract class holding everything common between the different types of tasks.

FExportSceneResult ​

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

FImportSceneAsActorsResult ​

The result coming out of an ImportSceneAsActors SimplygonSubsystem task.

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.