Simplygon Subsystem for C++
Subsystem Methods
Name | Description |
---|---|
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. |
ExportActorsToScene | Run an async export task of the given actors using the given export settings. |
RetrieveExportActorsToSceneResult | Retrieves the result of a task created using the ExportActorsToScene function. |
ImportSceneAsActors | Run an async import task using the given import settings to spawn imported actors into the given world. |
RetrieveImportSceneAsActorsResult | Retrieves the result of a task created using the ImportSceneAsActors function. |
AddNativeExportActorsToSceneCallback | Bind delegate that will get triggered when an export task is finished. |
RemoveNativeExportActorsToSceneCallback | Remove delegate that will get triggered when an export task is finished. |
AddNativeImportSceneAsActorsCallback | Bind delegate that will get triggered when an import task is finished. |
RemoveNativeImportSceneAsActorsCallback | Remove delegate that will get triggered when an import task is finished. |
Subsystem Properties
Name | Description |
---|---|
OnExportActorsToSceneCompleted | Delegate type for triggering when an export task is finished. |
OnImportSceneAsActorsCompleted | Delegate type for triggering when an import task is finished. |
Data structs
Name | Description |
---|---|
FSubsystemTaskResult | Struct holding a result coming out of a SimplygonSubsystem task. |
FExportActorsToSceneResult | The result coming out of an ExportActorsToScene 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. |
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
Name | Description |
---|---|
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. |
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.
ExportActorsToScene
Run an async export task of the given actors using the given export settings. Possible to bind a delegate callback to the OnExportActorsToSceneCompleted (from Python/Blueprints) or add a delegate using AddNativeExportActorsToSceneCallback (C++) which will be called when the export task is finished.
RetrieveExportActorsToSceneResult
Retrieves the result of a task created using the ExportActorsToScene 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 ExportActorsToScene 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 using AddNativeImportSceneAsActorsCallback (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.
AddNativeExportActorsToSceneCallback
Bind delegate that will get triggered when an export task is finished.
RemoveNativeExportActorsToSceneCallback
Remove delegate that will get triggered when an export task is finished.
AddNativeImportSceneAsActorsCallback
Bind delegate that will get triggered when an import task is finished.
RemoveNativeImportSceneAsActorsCallback
Remove delegate that will get triggered when an import task is finished.
Properties details
OnExportActorsToSceneCompleted
Delegate type for triggering when an export task is finished.
OnImportSceneAsActorsCompleted
Delegate type for triggering when an import task is finished.
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.
FExportActorsToSceneResult
The result coming out of an ExportActorsToScene 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.
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.