Navigation
API > API/Editor > API/Editor/UnrealEd
| Name | UTextureFactory |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Factories/TextureFactory.h |
| Include Path | #include "Factories/TextureFactory.h" |
Syntax
UCLASS (CustomConstructor, CollapseCategories, HideCategories=Object, MinimalAPI)
class UTextureFactory :
public UFactory ,
public IImportSettingsParser
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UFactory → UTextureFactory
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UTextureFactory
(
const FObjectInitializer& ObjectInitializer |
Factories/TextureFactory.h | ||
UTextureFactory
(
const FObjectInitializer& ObjectInitializer |
Factories/TextureFactory.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bForceOverwriteExistingSettings | bool | Force overwriting the existing texture without the dialog box | Factories/TextureFactory.h |
| bSuppressImportOverwriteDialog | bool | This variable is static because in StaticImportObject() the type of the factory is not known. | Factories/TextureFactory.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AlphaCoverageThresholds | FVector4 | Channel values to compare to when preserving alpha coverage from a mask. | Factories/TextureFactory.h |
|
| bAlphaToEmissive | uint32 | If enabled, link the texture's alpha to the created material's emissive color | Factories/TextureFactory.h |
|
| bAlphaToOpacity | uint32 | If enabled, link the texture's alpha to the created material's opacity | Factories/TextureFactory.h |
|
| bAlphaToOpacityMask | uint32 | If enabled, link the texture's alpha to the created material's opacity mask | Factories/TextureFactory.h |
|
| bAlphaToRoughness | uint32 | If enabled, link the texture's alpha to the created material's specular color | Factories/TextureFactory.h |
|
| bCreateMaterial | uint32 | If enabled, a material will automatically be created for the texture | Factories/TextureFactory.h |
|
| bDeferCompression | uint32 | If enabled, compression is deferred until the texture is saved | Factories/TextureFactory.h |
|
| bDoScaleMipsForAlphaCoverage | bool | Whether mip RGBA should be scaled to preserve the number of pixels with Value >= AlphaCoverageThresholds | Factories/TextureFactory.h |
|
| bFlipNormalMapGreenChannel | uint32 | If enabled, the texture's green channel will be inverted. This is useful for some normal maps | Factories/TextureFactory.h |
|
| Blending | TEnumAsByte< enum EBlendMode > | The blend mode of the created material | Factories/TextureFactory.h |
|
| bPreserveBorder | uint32 | If enabled, preserve the value of border pixels when creating mip-maps | Factories/TextureFactory.h |
|
| bRGBToBaseColor | uint32 | If enabled, link the texture to the created material's base color | Factories/TextureFactory.h |
|
| bRGBToEmissive | uint32 | If enabled, link the texture to the created material's emissive color | Factories/TextureFactory.h |
|
| bTwoSided | uint32 | If enabled, the created material will be two-sided | Factories/TextureFactory.h |
|
| bUseHashAsGuid | uint32 | If enabled, we are using the texture content hash as the guid. | Factories/TextureFactory.h |
|
| bUseNewMipFilter | bool | Whether to use newer & faster mip generation filter, same quality but produces slightly different results from previous implementation | Factories/TextureFactory.h |
|
| bUsingExistingSettings | uint32 | If enabled, we are using the existing settings for a texture that already existed. | Factories/TextureFactory.h |
|
| ColorSpaceMode | ETextureSourceColorSpace | Mode for how to determine the color space of the source image. | Factories/TextureFactory.h |
|
| CompressionSettings | TEnumAsByte< enum TextureCompressionSettings > | Compression settings for the texture | Factories/TextureFactory.h |
|
| HDRImportShouldBeLongLatCubeMap | TEnumAsByte< EAppReturnType::Type > | Store YesAll/NoAll responses: | Factories/TextureFactory.h |
|
| LODGroup | TEnumAsByte< enum TextureGroup > | The group the texture belongs to | Factories/TextureFactory.h |
|
| MipGenSettings | TEnumAsByte< enum TextureMipGenSettings > | The mip-map generation settings for the texture; Allows customization of the content of the mip-map chain | Factories/TextureFactory.h |
|
| NoAlpha | uint32 | If enabled, the texture's alpha channel will be discarded during compression | Factories/TextureFactory.h |
|
| NoCompression | uint32 | Factories/TextureFactory.h | ||
| ShadingModel | TEnumAsByte< enum EMaterialShadingModel > | The shading model of the created material | Factories/TextureFactory.h |
|
| UdimRegexPattern | FString | The pattern to use to match UDIM files to indices. | Factories/TextureFactory.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AutomatedImportSettings | TSharedPtr< class FJsonObject > | Texture settings from the automated importer that should be applied to the new texture | Factories/TextureFactory.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UTexture2D * CreateTexture2D
(
UObject* InParent, |
Create a texture given the appropriate input parameters | Factories/TextureFactory.h | |
virtual UTexture2DArray * CreateTexture2DArray
(
UObject* InParent, |
Factories/TextureFactory.h | ||
virtual UTextureCube * CreateTextureCube
(
UObject* InParent, |
Factories/TextureFactory.h | ||
void FindCubeMapFace
(
const FString& ParsedText, |
Factories/TextureFactory.h | ||
bool InitializeFromT3DTexture2DDataText
(
UTexture2D* InTexture2D, |
Factories/TextureFactory.h | ||
bool InitializeFromT3DTextureCubeDataText
(
UTextureCube* InTextureCube, |
Factories/TextureFactory.h | ||
bool InitializeFromT3DTextureDataText
(
UTexture* InTexture, |
Initializes the given texture from the TextureData text block supplied. | Factories/TextureFactory.h |
Overridden from UFactory
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool DoesSupportClass
(
UClass* Class |
Factories/TextureFactory.h | ||
virtual bool FactoryCanImport
(
const FString& Filename |
Whether the specified file can be imported by this factory. | Factories/TextureFactory.h | |
virtual UObject * FactoryCreateBinary
(
UClass* InClass, |
Create a new object by importing it from a binary buffer. | Factories/TextureFactory.h | |
virtual IImportSettingsParser * GetImportSettingsParser() |
Factories/TextureFactory.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostInitProperties() |
Factories/TextureFactory.h |
Overridden from IImportSettingsParser
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ParseFromJson
(
TSharedRef< class FJsonObject > ImportSettingsJson |
IImportSettingsParser interface | Factories/TextureFactory.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool IsImportResolutionValid
(
int64 Width, |
Tests if the given height and width specify a supported texture resolution to import; Can optionally check if the height/width are powers of two | Factories/TextureFactory.h | |
static void SuppressImportOverwriteDialog
(
bool bOverwriteExistingSettings |
Suppresses the dialog box that, when importing over an existing texture, asks if the users wishes to overwrite its settings. | Factories/TextureFactory.h |