FReimportManager::Reimport

Attempt to reimport the specified object from its source by giving registered reimport handlers a chance to try to reimport the object

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/EditorReimportHandler.h

Include

#include "EditorReimportHandler.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Editor.cpp

Syntax

virtual bool Reimport
(
    UObject * Obj,
    bool bAskForNewFileIfMissing,
    bool bShowNotification,
    FString PreferredReimportFile,
    FReimportHandler * SpecifiedReimportHandler,
    int32 SourceFileIndex,
    bool bForceNewFile
)

Remarks

Attempt to reimport the specified object from its source by giving registered reimport handlers a chance to try to reimport the object

Returns

true if the object was handled by one of the reimport handlers; false otherwise

Parameters

Parameter

Description

Obj

Object to try reimporting

bAskForNewFileIfMissing

If the file is missing, open a dialog to ask for a new one

bShowNotification

True to show a notification when complete, false otherwise

PreferredReimportFile

if not empty, will be use in case the original file is missing and bAskForNewFileIfMissing is set to false

SourceFileIndex

which source file index you want to reimport default is INDEX_NONE(the factory will choose)

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