FDatasmithImportContext::Init

Initialize members required before loading anything, must call [InitScene()](API\Plugins\DatasmithImporter\FDatasmithImportContext\InitScene) independendly when using this function.

Choose your operating system:

Windows

macOS

Linux

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

Syntax

bool Init
(
    const FString & InImportPath,
    EObjectFlags InFlags,
    FFeedbackContext * InWarn,
    const TSharedPtr< FJsonObject > & ImportSettingsJson,
    bool bSilent
)

Remarks

Initialize members required before loading anything, must call InitScene() independendly when using this function.

Parameters

Parameter

Description

InImportPath

The path where the scene will be imported

InFlags

Flags applied to all generated objects during the following import

InWarn

Feedback context for the following import

ImportSettingsJson

When bSilent, options as json

bSilent

Doesn't display the options dialog and skips other user input requests