UDatasmithImportFactory

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithImportFactory.h

Include

#include "DatasmithImportFactory.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UDatasmithImportFactory :
    public USceneImportFactory,
    public IImportSettingsParser,
    public FReimportHandler

Constructors

Name Description

Public function

UDatasmithImportFactory()

Overridden from UFactory

Name Description

Public function Virtual

void

 

CleanUp()

Do clean up after importing is done. Will be called once for multi batch import.

Public function Virtual

bool

 

DoesSupportClass

(
    UClass* InClass
)

Used on import path edition to select factories that can produce InClass type of asset.

Public function Virtual

bool

 

FactoryCanImport

(
    const FString& Filename
)

Whether the specified file can be imported by this factory.

Public function Virtual

UObject *...

 

FactoryCreateFile

(
    UClass* InClass,
    UObject* InParent,
    FName InName,
    EObjectFlags Flags,
    const FString& Filename,
    const TCHAR* Parms,
    FFeedbackContext* Warn,
    bool& bOutOperationCanceled
)

Create a new object by importing it from a file name.

Public function Virtual Const

FText

 

GetDisplayName()

Returns the name of the factory for menus

Public function Virtual

IImportSetti...

 

GetImportSettingsParser()

Public function Virtual

UClass *

 

ResolveSupportedClass()

Resolves SupportedClass for factories which support multiple classes.

Overridden from IImportSettingsParser

Name Description

Public function Virtual

void

 

ParseFromJson

(
    TSharedRef< FJsonObject > ImportSet...
)

Parses settings data from a json object.

Overridden from FReimportHandler

Name Description

Public function Virtual

bool

 

CanReimport

(
    UObject* Obj,
    TArray< FString >& OutFilenames
)

Check to see if the handler is capable of reimporting the object

Public function Virtual Const

const UObjec...

 

GetFactoryObject()

Returns the UFactory object associated with this reimport handler

Public function Virtual Const

int32

 

GetPriority()

Get the import priority for this handler.

Public function Virtual

EReimportRes...

 

Reimport

(
    UObject* Obj
)

Attempt to reimport the specified object from its source

Public function Virtual

void

 

SetReimportPaths

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

Sets the reimport path(s) for the specified object

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