UFactory::FactoryCreateFile

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

Windows
MacOS
Linux

Override Hierarchy

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Factories/Factory.h

Include

#include "Factories/Factory.h"

Source

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

Syntax

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

Remarks

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

The default implementation of this method will load the contents of the entire file into a byte buffer and call FactoryCreateBinary. User defined factories may override this behavior to process the provided file name on their own.

Returns

The new object.

Parameters

Parameter

Description

InClass

InParent

InName

Flags

Filename

Parms

Warn

bOutOperationCanceled

Will indicate whether the user canceled the import.

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