Navigation
API > API/Plugins > API/Plugins/DatasmithImporter > API/Plugins/DatasmithImporter/FDatasmithImportContext > API/Plugins/DatasmithImporter/FDatasmithImportContext/InitOptions
References
| Module | DatasmithImporter |
| Header | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithImportContext.h |
| Include | #include "DatasmithImportContext.h" |
| Source | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/DatasmithImportContext.cpp |
bool InitOptions
&40;
const TSharedPtr< FJsonObject > & ImportSettingsJson,
const TOptional< FString > & InImportPath,
bool bSilent
&41;
Remarks
First part of the Init process, requires a call to SetupDestination and InitScene after that. Displays the options to the end-user (blocking call), and updates translator accordingly. When silent, Json options are parsed instead. false if the user canceled -> import should not occurs in that case.
Parameters
| Name | Description |
|---|---|
| ImportSettingsJson | When bSilent, options as json |
| InImportPath | Optional import path displayed when bSilent is false. |
| bSilent | Flag that prevents options to be displayed and edited |