FDatasmithImportContext::InitOptions

First part of the Init process, replaces Init, and requires a call to SetupDestination after that.

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 InitOptions
(
    TSharedRef< IDatasmithScene > InScene,
    const TSharedPtr< FJsonObject > & ImportSettingsJson,
    bool bSilent
)

Remarks

First part of the Init process, replaces Init, and requires a call to SetupDestination after that. Displays the options to the end-user (blocking call), and updates translator accordingly. When silent, Json options are parsed instead.

Returns

false if the user canceled -> import should not occurs in that case.

Parameters

Parameter

Description

InScene

Scene that the context will use for the translation and import

ImportSettingsJson

When bSilent, options as json

bSilent

Flag that prevents options to be displayed and edited

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss