Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Factories
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UFactory
- UTextureFactory
- UReimportTextureFactory
- UTrueTypeFontFactory
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Classes/Factories/TextureFactory.h |
| Include | #include "Factories/TextureFactory.h" |
Syntax
class UTextureFactory :
public UFactory,
public IImportSettingsParser
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector4 | AlphaCoverageThresholds | Channel values to compare to when preserving alpha coverage from a mask. | |
| uint32: 1 | bAlphaToEmissive | If enabled, link the texture's alpha to the created material's emissive color | |
| uint32: 1 | bAlphaToOpacity | If enabled, link the texture's alpha to the created material's opacity | |
| uint32: 1 | bAlphaToOpacityMask | If enabled, link the texture's alpha to the created material's opacity mask | |
| uint32: 1 | bAlphaToRoughness | If enabled, link the texture's alpha to the created material's specular color | |
| uint32: 1 | bCreateMaterial | If enabled, a material will automatically be created for the texture | |
| uint32: 1 | bDeferCompression | If enabled, compression is deferred until the texture is saved | |
| bool | bDoScaleMipsForAlphaCoverage | Whether mip RGBA should be scaled to preserve the number of pixels with Value >= AlphaCoverageThresholds | |
| uint32: 1 | bFlipNormalMapGreenChannel | If enabled, the texture's green channel will be inverted. This is useful for some normal maps | |
| bool | bIsDoingAReimport | Keep track of if we are doing a reimport | |
| TEnumAsByte< enum EBlendMode > | Blending | The blend mode of the created material | |
| uint32: 1 | bPreserveBorder | If enabled, preserve the value of border pixels when creating mip-maps | |
| uint32: 1 | bRGBToBaseColor | If enabled, link the texture to the created material's base color | |
| uint32: 1 | bRGBToEmissive | If enabled, link the texture to the created material's emissive color | |
| uint32: 1 | bTwoSided | If enabled, the created material will be two-sided | |
| uint32: 1 | bUseHashAsGuid | If enabled, we are using the texture content hash as the guid. | |
| bool | bUseNewMipFilter | Whether to use newer & faster mip generation filter, same quality but produces slightly different results from previous implementation | |
| uint32: 1 | bUsingExistingSettings | If enabled, we are using the existing settings for a texture that already existed. | |
| ETextureSourceColorSpace | ColorSpaceMode | Mode for how to determine the color space of the source image. | |
| TEnumAsByte< enum TextureCompressionSettings > | CompressionSettings | Compression settings for the texture | |
| TEnumAsByte< EAppReturnType::Type > | HDRImportShouldBeLongLatCubeMap | Store YesAll/NoAll responses: | |
| TEnumAsByte< enum TextureGroup > | LODGroup | The group the texture belongs to | |
| TEnumAsByte< enum TextureMipGenSettings > | MipGenSettings | The mip-map generation settings for the texture; Allows customization of the content of the mip-map chain | |
| uint32: 1 | NoAlpha | If enabled, the texture's alpha channel will be discarded during compression | |
| uint32: 1 | NoCompression | ||
| TEnumAsByte< enum EMaterialShadingModel > | ShadingModel | The shading model of the created material | |
| FString | UdimRegexPattern | The pattern to use to match UDIM files to indices. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UTextureFactory
(
const FObjectInitializer& ObjectInitializer |
|||
UTextureFactory
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UTexture2D * | CreateTexture2D
(
UObject* InParent, |
Create a texture given the appropriate input parameters | |
| UTexture2DArray * | CreateTexture2DArray
(
UObject* InParent, |
||
| UTextureCube * | CreateTextureCube
(
UObject* InParent, |
||
| void | FindCubeMapFace
(
const FString& ParsedText, |
||
| bool | InitializeFromT3DTexture2DDataText
(
UTexture2D* InTexture2D, |
||
| bool | InitializeFromT3DTextureCubeDataText
(
UTextureCube* InTextureCube, |
||
| bool | InitializeFromT3DTextureDataText
(
UTexture* InTexture, |
Initializes the given texture from the TextureData text block supplied. | |
| void | SuppressImportOverwriteDialog
(
bool bOverwriteExistingSettings |
Suppresses the dialog box that, when importing over an existing texture, asks if the users wishes to overwrite its settings. |
Overridden from UFactory
| Type | Name | Description | |
|---|---|---|---|
| bool | DoesSupportClass
(
UClass* Class |
||
| bool | FactoryCanImport
(
const FString& Filename |
Whether the specified file can be imported by this factory. | |
| UObject * | FactoryCreateBinary
(
UClass* InClass, |
Create a new object by importing it from a binary buffer. | |
| IImportSettingsParser * |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
Overridden from IImportSettingsParser
| Type | Name | Description | |
|---|---|---|---|
| void | ParseFromJson
(
TSharedRef< class FJsonObject > ImportSettingsJson |
IImportSettingsParser interface |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EImageImportFlags | Flags to be used when calling ImportImage |
Constants
| Name | Description |
|---|---|
| bForceOverwriteExistingSettings | Force overwriting the existing texture without the dialog box |
| bSuppressImportOverwriteDialog | This variable is static because in StaticImportObject() the type of the factory is not known. |