FReimportManager

Reimport manager for package resources with associated source files on disk.

Windows
MacOS
Linux

Inheritance Hierarchy

FGCObject

FReimportManager

References

Module

UnrealEd

Header

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

Include

#include "EditorReimportHandler.h"

Syntax

class FReimportManager : private FGCObject

Remarks

Reimport manager for package resources with associated source files on disk.

Constructors

No constructors are accessible with public or protected access.

Destructors

No destructors are accessible with public or protected access.

Functions

Name Description

Public function Virtual Const

bool

 

CanReimport

(
    UObject* Obj,
    TArray< FString >* ReimportSou...
)

Check to see if we have a handler to manage the reimporting of the object

Public function

void

 

GetNewReimportPath

(
    UObject* Obj,
    TArray< FString >& InOutFilenames,
    int32 SourceFileIndex
)

Opens a file dialog to request a new reimport path

Public function Static

FReimportMan...

 

Instance()

Singleton function, provides access to the only instance of the class

Public function

FPostReimpor...

 

OnPostReimport()

Public function

FPreReimport...

 

OnPreReimport()

Public function

void

 

RegisterHandler

(
    FReimportHandler& InHandler
)

Register a reimport handler with the manager

Public function Virtual

bool

 

Reimport

(
    UObject* Obj,
    bool bAskForNewFileIfMissing,
    bool bShowNotification,
    FString PreferredReimportFile,
    FReimportHandler* SpecifiedRei...,
    int32 SourceFileIndex,
    bool bForceNewFile
)

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

Public function Virtual

bool

 

ReimportMultiple

(
    TArrayView< UObject* > Objects,
    bool bAskForNewFileIfMissing,
    bool bShowNotification,
    FString PreferredReimportFile,
    FReimportHandler* SpecifiedRei...,
    int32 SourceFileIndex
)

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

Public function

void

 

UnregisterHandler

(
    FReimportHandler& InHandler
)

Unregister a reimport handler from the manager

Public function Virtual

void

 

UpdateReimportPath

(
    UObject* Obj,
    const FString& Filename,
    int32 SourceFileIndex
)

Update the reimport paths for the specified object

Public function Virtual

void

 

UpdateReimportPaths

(
    UObject* Obj,
    const TArray< FString >& InFilenam...
)

Update the reimport paths for the specified object

Public function Virtual

void

 

ValidateAllSourceFileAndReimport

(
    TArray< UObject* >& ToImportO...,
    bool bShowNotification,
    int32 SourceFileIndex,
    bool bForceNewFile
)

Attemp to reimport all specified objects.

Overridden from FGCObject

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

FGCObject interface

Typedefs

Name

Description

FPostReimportNotification

Gets the delegate that's fired after to reimporting an asset

FPreReimportNotification

Gets the delegate that's fired prior to reimporting an asset

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback