Navigation
API > API/Editor > API/Editor/UnrealEd
Base class for all factories An object responsible for creating and importing new objects.
| Name | UFactory |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Factories/Factory.h |
| Include Path | #include "Factories/Factory.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UFactory : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UFactory
Derived Classes
UFactory derived class hierarchy
- UBlendSpaceFactory1D
- UBlendSpaceFactoryNew
- UAlembicImportFactory
- UAnimationCompressionLibraryDatabaseFactory
- UAnimationSharingSetupFactory
- UTransformProviderDataFactory
- UAnimBankFactory
- UAnimBlueprintFactory
- UAnimBoneCompressionSettingsFactory
- UAnimCompositeFactory
- UAnimCurveCompressionSettingsFactory
- UAnimMontageFactory
- UAnimSequenceFactory
- UAnimStreamableFactory
- UAudioBusFactory
- UAudioImpulseResponseFactory
- UAudioSynesthesiaNRTFactory
- UAudioSynesthesiaNRTSettingsFactory
- UAudioSynesthesiaSettingsFactory
- UBehaviorTreeFactory
- UBlackboardDataFactory
- UBlueprintFactory
- UCacheCollectionFactory
- UCameraCalibrationFactory
- UCanvasRenderTarget2DFactoryNew
- UChaosClothAssetFactory
- UChaosSolverFactory
- UCommonGenericInputActionDataTableFactory
- UCompositeCurveTableFactory
- UDataTableFactory
- UContextualAnimFactory
- UControlRigBlueprintFactory
- UCSVImportFactory
- UCurveFactory
- UCurveImportFactory
- UCurveLinearColorAtlasFactory
- UCurveTableFactory
- UCustomizableObjectFactory
- UCustomizableObjectPopulationClassFactory
- UCustomizableObjectPopulationFactory
- UDataAssetFactory
- UDataflowAssetFactory
- UDataLayerFactory
- UDataprepAssetFactory
- UDataprepAssetInstanceFactory
- USceneImportFactory
- UDialogueVoiceFactory
- UDialogueWaveFactory
- UDisplayClusterConfiguratorFactory
- UDMTextureSetFactory
- UDMXEditorFactoryNew
- UDMXLibraryFactory
- UDMXLibraryFromMVRFactory
- UDNAAssetImportFactory
- UDynamicMaterialInstanceFactory
- UEditorUtilityBlueprintFactory
- UEditorUtilityWidgetBlueprintFactory
- UEndpointSubmixFactory
- UEnumFactory
- UEnvironmentQueryFactory
- UExternalDataLayerFactory
- UFbxFactory
- UFieldSystemFactory
- UFleshAssetFactory
- UFontFactory
- UFontFileImportFactory
- UForceFeedbackAttenuationFactory
- UForceFeedbackEffectFactory
- UGeometryCollectionCacheFactory
- UGeometryCollectionFactory
- UHapticFeedbackEffectBufferFactory
- UHapticFeedbackEffectCurveFactory
- UHapticFeedbackEffectSoundWaveFactory
- ULevelFactory
- ULightWeightInstanceFactory
- UMaterialFactoryNew
- UMaterialFunctionFactoryNew
- UMaterialFunctionInstanceFactory
- UMaterialFunctionMaterialLayerBlendFactory
- UMaterialFunctionMaterialLayerFactory
- UMaterialInstanceConstantFactoryNew
- UMaterialParameterCollectionFactoryNew
- UMeshDeformerCollectionFactory
- UMetaHumanCharacterFactoryNew
- UMetaSoundBaseFactory
- UMirrorDataTableFactory
- UModelFactory
- UModularSynthPresetBankFactory
- UMonoWaveTableSynthPresetFactory
- UMovieGraphConfigFactory
- UMoviePipelinePrimaryConfigFactory
- UMoviePipelineShotConfigFactory
- UNeuralProfileFactory
- UNiagaraDataChannelAssetFactoryNew
- UNiagaraEffectTypeFactoryNew
- UNiagaraEmitterFactoryNew
- UNiagaraParameterCollectionFactoryNew
- UNiagaraParameterCollectionInstanceFactoryNew
- UNiagaraParameterDefinitionsFactory
- UNiagaraScriptFactoryNew
- UNiagaraSystemFactoryNew
- UObjectLibraryFactory
- UPackageFactory
- UPackFactory
- UParticleSystemFactoryNew
- UPhysicalMaterialFactoryNew
- UPhysicalMaterialMaskFactory
- UPhysicsAssetFactory
- UPolysFactory
- UPoseAssetFactory
- UPoseSearchDatabaseFactory
- UPoseSearchInteractionAssetFactory
- UPoseSearchNormalizationSetFactory
- UPoseSearchSchemaFactory
- UPreviewMeshCollectionFactory
- USceneStateBlueprintFactory
- UScriptFactory
- USkeletonFactory
- USlateBrushAssetFactory
- USlateWidgetStyleAssetFactory
- USparseVolumeTextureMaterialFactoryNew
- USpecularProfileFactory
- UStateTreeFactory
- UStringTableFactory
- UStructureFactory
- USubsurfaceProfileFactory
- USubUVAnimationFactory
- UTaggedAssetBrowserConfigurationFactory
- UTexture2DArrayFactory
- UTexture2DFactoryNew
- UTextureCubeArrayFactory
- UTextureFactory
- UTextureRenderTarget2DArrayFactoryNew
- UTextureRenderTargetCubeFactoryNew
- UTextureRenderTargetFactoryNew
- UTextureRenderTargetVolumeFactoryNew
- UTouchInterfaceFactory
- UVariableFrameStrippingSettingsFactory
- UVariantManagerFactoryNew
- UVectorFieldStaticFactory
- UVolumeCacheFactory
- UVolumeTextureFactory
- UWebAPIDefinitionFactory
- UWorkspaceFactory
- UWorldFactory
- UFootageCaptureDataFactory
- UGameplayAbilitiesBlueprintFactory
- UGroomBindingFactory
- UGroomFactory
- UHairStrandsFactory
- UHierarchyTableFactory
- UHLODLayerFactory
- UIconTrackerFactory
- UIKRetargetFactory
- UIKRigDefinitionFactory
- UInputAction_Factory
- UInputMappingContext_Factory
- UInteractiveToolsPresetCollectionAssetFactory
- UITDSpatializationSettingsFactory
- UMaterialCacheVirtualTextureTagFactory
- UMeshCaptureDataFactory
- UMetaHumanCameraCalibrationImporterFactory
- UMetaHumanWardrobeItemFactory
- UMLDeformerFactory
- UNaniteDisplacedMeshFactory
- UNNERuntimeCoreMLModelDataFactory
- UNNERuntimeIREEModelDataFactory
- UObjectMixerBlueprintFilterFactory
- UPaperFlipbookFactory
- UPaperSpriteFactory
- UPaperTiledImporterFactory
- UPaperTileMapFactory
- UPaperTileMapPromotionFactory
- UPaperTileSetFactory
- USoundFactory
- USpeedTreeImportFactory
- UReverbEffectFactory
- URuntimeVirtualTextureFactory
- USlateVectorArtDataFactory
- USoundAttenuationFactory
- USoundClassFactory
- USoundConcurrencyFactory
- USoundCueFactoryNew
- USoundCueTemplateCopyFactory
- USoundCueTemplateFactory
- USoundfieldEndpointSubmixFactory
- USoundfieldSubmixFactory
- USoundMixFactory
- USoundModImporterFactory
- USoundSourceBusFactory
- USoundSourceEffectChainFactory
- USoundSourceEffectFactory
- USoundSubmixEffectFactory
- USoundSubmixFactory
- USparseVolumeTextureFactory
- UStaticMeshLODGenerationSettingsFactory
- UTimecodeSynchronizerFactory
- UUTBCommandFactory
- UUTBCommandTabFactory
- UUTBEditorUtilityBlueprintFactory
- UVirtualTextureBuilderFactory
- UWidgetBlueprintFactory
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UFactory
(
const FObjectInitializer& ObjectInitializer |
Factories/Factory.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CurrentFilename | FString | Name of the file currently being imported. | Factories/Factory.h |
| DefaultImportPriority | const int32 | This is the import priority that all factories are given in the default constructor. | Factories/Factory.h |
| FileHash | FMD5Hash | This is the HASH for the file being imported | Factories/Factory.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetImportTask | TObjectPtr< class UAssetImportTask > | Task for importing file via script interfaces | Factories/Factory.h |
|
| AutomatedImportData | TObjectPtr< const class UAutomatedAssetImportData > | Data for how to import files via the automated command line importing interface | Factories/Factory.h |
|
| bEditAfterNew | uint32 | True if the associated editor should be opened after creating a new object. | Factories/Factory.h |
|
| bEditorImport | uint32 | True if the factory imports objects from files. | Factories/Factory.h |
|
| bText | uint32 | True if the factory imports objects from text. | Factories/Factory.h |
|
| ContextClass | TSubclassOf< UObject > | Class of the context object used to help create the object. | Factories/Factory.h |
|
| Formats | TArray< FString > | List of formats supported by the factory. | Factories/Factory.h |
|
| ImportPriority | int32 | Determines the order in which factories are tried when importing or reimporting an object. | Factories/Factory.h | |
| SupportedClass | TSubclassOf< UObject > | The class manufactured by this factory. | Factories/Factory.h |
|
| SupportedWorkflows | uint8 | Which workflows are supported. | Factories/Factory.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanCreateNew() |
Factories/Factory.h | ||
virtual bool CanImportBeCanceled() |
Whether the factory is checking for SlowTask::ShouldCancel() while importing and aborting the import when appropriate. | Factories/Factory.h | |
virtual void CleanUp() |
Do clean up after importing is done. Will be called once for multi batch import. | Factories/Factory.h | |
virtual bool ConfigureProperties () |
Opens a dialog to configure the factory properties. | Factories/Factory.h | |
virtual bool ConfigurePropertiesAsync
(
FFactoryConfigurePropertiesComplete OnComplete, |
Called instead of ConfigureProperties() when an asset is being created asynchronously. | Factories/Factory.h | |
UObject * CreateOrOverwriteAsset
(
UClass* InClass, |
Creates an asset if it doesn't exist. | Factories/Factory.h | |
void DisplayOverwriteOptionsDialog
(
const FText& Message |
Pop up message to the user asking whether they wish to overwrite existing state or not. | Factories/Factory.h | |
virtual bool DoesSupportClass
(
UClass* Class |
Factories/Factory.h | ||
virtual bool FactoryCanImport
(
const FString& Filename |
Whether the specified file can be imported by this factory. | Factories/Factory.h | |
virtual UObject * FactoryCreateFile
(
UClass* InClass, |
Create a new object by importing it from a file name. | Factories/Factory.h | |
virtual UObject * FactoryCreateNew
(
UClass* InClass, |
Create a new object by class. | Factories/Factory.h | |
virtual UObject * FactoryCreateNew
(
UClass* InClass, |
Create a new object by class. | Factories/Factory.h | |
const TArray< UObject * > & GetAdditionalImportedObjects () |
Returns an array of all the additional objects created during the last imports, as some factories may produce more than one object. | Factories/Factory.h | |
virtual FString GetDefaultNewAssetName() |
Returns a new starting point name for newly created assets in the content browser | Factories/Factory.h | |
virtual FText GetDisplayName() |
Returns the name of the factory for menus | Factories/Factory.h | |
| Factories/Factory.h | |||
virtual IImportSettingsParser * GetImportSettingsParser() |
Factories/Factory.h | ||
virtual uint32 GetMenuCategories () |
When shown in menus, this is the category containing this factory. | Factories/Factory.h | |
| Branch of sub-menus containing factory under each provided category. | Factories/Factory.h | ||
virtual FName GetNewAssetIconOverride () |
Returns an optional override brush name for the new asset menu. | Factories/Factory.h | |
virtual FName GetNewAssetThumbnailOverride () |
Returns an optional override brush name for the new asset menu. | Factories/Factory.h | |
UClass * GetSupportedClass() |
Factories/Factory.h | ||
| Creates a list of file extensions supported by this factory | Factories/Factory.h | ||
virtual EFactoryCreateWorkflow GetSupportedWorkflows() |
Factories/Factory.h | ||
virtual FText GetToolTip() |
Returns the tooltip text description of this factory | Factories/Factory.h | |
virtual FString GetToolTipDocumentationExcerpt() |
Returns the documentation excerpt that should be use for the rich tool tip for this factory | Factories/Factory.h | |
virtual FString GetToolTipDocumentationPage() |
Returns the documentation page that should be use for the rich tool tip for this factory | Factories/Factory.h | |
| Factories/Factory.h | |||
virtual bool ImportUntypedBulkDataFromText
(
const TCHAR*& Buffer, |
Factories/Factory.h | ||
virtual bool IsAutomatedImport() |
Factories/Factory.h | ||
virtual bool IsSupportedFileExtension
(
FStringView InExtension |
Returns true if the provided file extension is supported | Factories/Factory.h | |
void ResetState () |
Resets the saved state of this factory. | Factories/Factory.h | |
virtual UClass * ResolveSupportedClass () |
Resolves SupportedClass for factories which support multiple classes. | Factories/Factory.h | |
bool ScriptFactoryCanImport
(
const FString& Filename |
Whether the specified file can be imported by this factory. (Implemented in script) | Factories/Factory.h |
|
bool ScriptFactoryCreateFile
(
UAssetImportTask* InTask |
Import object(s) using a task via script | Factories/Factory.h |
|
void SetAssetImportTask
(
UAssetImportTask* Task |
Sets the import task being used with this factory | Factories/Factory.h | |
void SetAutomatedAssetImportData
(
const UAutomatedAssetImportData* Data |
Sets the automated import data being used with this factory | Factories/Factory.h | |
virtual bool ShouldShowInNewMenu() |
Returns true if this factory should be shown in the New Asset menu (by default calls CanCreateNew). | Factories/Factory.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UObject * FactoryCreateBinary
(
UClass* InClass, |
Create a new object by importing it from a binary buffer (cancelable). | Factories/Factory.h | |
virtual UObject * FactoryCreateBinary
(
UClass* InClass, |
Create a new object by importing it from a binary buffer. | Factories/Factory.h | |
virtual UObject * FactoryCreateText
(
UClass* InClass, |
Create a new object by importing it from a text buffer. | Factories/Factory.h | |
virtual UObject * FactoryCreateText
(
UClass* InClass, |
Create a new object by importing it from a text buffer. | Factories/Factory.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddReferencedObjects
(
UObject* InThis, |
Factories/Factory.h | ||
static FString GetCurrentFilename() |
Get the name of the file currently being imported. | Factories/Factory.h | |
static int32 GetDefaultImportPriority() |
Get the default import priority for factories. | Factories/Factory.h | |
static FMD5Hash GetFileHash () |
Get the Hash for the file being imported. | Factories/Factory.h | |
| Helper function to sort an array of factories by their import priority - use as a predicate for Sort | Factories/Factory.h | ||
static UObject * StaticImportObject
(
UClass* Class, |
Factories/Factory.h | ||
static UObject * StaticImportObject
(
UClass* Class, |
Factories/Factory.h |