Language:
Discover
By Skill Level
By Category

UTexture

Choose your OS:

Inheritance Hierarchy

Syntax

class UTexture :
    public UObject ,
    public IInterface_AssetUserData

Variables

Name Description

Public variable

float

 

AdjustBrightness

Static texture brightness adjustment (scales HSV value.) (Non-destructive; Requires texture source art to be available.)

Public variable

float

 

AdjustBrightnessCurve

Static texture curve adjustment (raises HSV value to the specified power.) (Non-destructive; Requires texture source art to be available.)

Public variable

float

 

AdjustHue

Static texture hue adjustment (0 - 360) (offsets HSV hue by value in degrees.) (Non-destructive; Requires texture source art to be available.)

Public variable

float

 

AdjustMaxAlpha

Remaps the alpha to the specified min/max range, defines the new value of 1 (Non-destructive; Requires texture source art to be available.)

Public variable

float

 

AdjustMinAlpha

Remaps the alpha to the specified min/max range, defines the new value of 0 (Non-destructive; Requires texture source art to be available.)

Public variable

float

 

AdjustRGBCurve

Static texture RGB curve adjustment (raises linear-space RGB color to the specified power.) (Non-destructive; Requires texture source art to be available.)

Public variable

float

 

AdjustSaturation

Static texture saturation adjustment (scales HSV saturation.) (Non-destructive; Requires texture source art to be available.)

Public variable

float

 

AdjustVibrance

Static texture "vibrance" adjustment (0 - 1) (HSV saturation algorithm adjustment.) (Non-destructive; Requires texture source art to be available.)

Public variable

FVector4

 

AlphaCoverageThresholds

Alpha values per channel to compare to when preserving alpha coverage.

Public variable

UAssetImportDat ...

 

AssetImportData

Protected variable

TArray < UAssetU ...

 

AssetUserData

Array of user data stored with the asset

Public variable

bool

 

bChromaKeyTexture

Whether to chroma key the image, replacing any pixels that match ChromaKeyColor with transparent black

Public variable

uint32 : 1

 

bDitherMipMapAlpha

When true, the alpha channel of mip-maps and the base image are dithered for smooth LOD transitions.

Public variable

uint32 : 1

 

bFlipGreenChannel

When true the texture's green channel will be inverted. This is useful for some normal maps.

Public variable

uint32 : 1

 

bForcePVRTC4

For DXT1 textures, setting this will cause the texture to be twice the size, but better looking, on iPhone

Public variable

uint32 : 1

 

bNoTiling

If true, the RHI texture will be created using TexCreate_NoTiling

Public variable

uint32 : 1

 

bPreserveBorder

When true the texture's border will be preserved during mipmap generation.

Public variable

uint32 : 1

 

bUseCinematicMipLevels

Whether to use the extra cinematic quality mip-levels, when we're forcing mip-levels to be resident.

Public variable

uint32 : 1

 

bUseLegacyGamma

A flag for using the simplified legacy gamma space e.g pow(color,1/2.2) for converting from FColor to FLinearColor , if we're doing sRGB.

Public variable

FColor

 

ChromaKeyColor

The color that will be replaced with transparent black if chroma keying is enabled

Public variable

float

 

ChromaKeyThreshold

The threshold that components have to match for the texel to be considered equal to the ChromaKeyColor when chroma keying (<=, set to 0 to require a perfect exact match)

Public variable

float

 

CompositePower

Default 1, high values result in a stronger effect e.g 1, 2, 4, 8 this is no slider because the texture update would not be fast enough

Public variable

UTexture *

 

CompositeTexture

Can be defined to modify the roughness based on the normal map variation (mostly from mip maps).

Public variable

TEnumAsByte < en...

 

CompositeTextureMode

Defines how the CompositeTexture is applied, e.g. CTM_RoughnessFromNormalAlpha

Public variable

uint32 : 1

 

CompressionNoAlpha

If enabled, the texture's alpha channel will be discarded during compression

Public variable

uint32 : 1

 

CompressionNone

Public variable

TEnumAsByte < en...

 

CompressionQuality

The compression quality for generated textures.

Public variable

TEnumAsByte < en...

 

CompressionSettings

Compression settings to use when building the texture.

Public variable

uint32 : 1

 

DeferCompression

If enabled, defer compression of the texture until save.

Public variable

TEnumAsByte < en...

 

Filter

The texture filtering mode to use when sampling this texture.

Public variable

int32

 

LODBias

WITH_EDITORONLY_DATA.

Public variable

TEnumAsByte < en...

 

LODGroup

Texture group this texture belongs to

Public variable

int32

 

MaxTextureSize

The maximum resolution for generated textures.

Public variable

TEnumAsByte < en...

 

MipGenSettings

Per asset specific setting to define the mip-map generation properties like sharpening and kernel size.

Public variable

uint32 : 1

 

NeverStream

WITH_EDITORONLY_DATA.

Public variable

int32

 

NumCinematicMipLevels

Number of mip-levels to use for cinematic quality.

Public variable

FColor

 

PaddingColor

The color used to pad the texture out if it is resized due to PowerOfTwoMode

Public variable

TEnumAsByte < en...

 

PowerOfTwoMode

How to pad the texture to a power of 2 size (if necessary)

Public variable

FRenderCommandF ...

 

ReleaseFence

Release fence to know when resources have been freed on the rendering thread.

Public variable

FTextureResourc ...

 

Resource

The texture's resource, can be NULL

Public variable

FTextureSource

 

Source

Editor only properties used to build the runtime texture data.

Public variable

uint32 : 1

 

SRGB

This should be unchecked if using alpha channels individually as masks.

Public variable

FTextureReferen ...

 

TextureReference

Stable RHI texture reference that refers to the current RHI texture.

Constructors

Name Description

Public function

UTexture

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function

void

 

BeginCachePlatformData()

Begins caching platform data in the background.

Public function

void

 

CachePlatformData

(
    bool bAsyncCache,
    bool bAllowAsyncBuild,
    bool bAllowAsyncLoading,
    ITextureCompressorModule * Comp...
)

Caches platform data for the texture.

Public function Virtual

uint32

 

CalcTextureMemorySizeEnum

(
    ETextureMipCount Enum
)

Calculates the size of this texture if it had MipCount miplevels streamed in.

Public function

void

 

CleanupCachedRunningPlatformData()

If WITH_EDITOR

Public function Virtual

FTextureReso ...

 

CreateResource()

Implemented by subclasses to create a new resource for the texture.

Public function

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

FinishCachePlatformData()

Blocks on async cache tasks and prepares platform data for use.

Public function

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

ForceRebuildPlatformData()

Forces platform data to be rebuilt.

Public function Static

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) b...

 

ForceUpdateTextureStreaming()

Forces textures to recompute LOD settings and stream as needed.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) f...

 

GetAverageBrightness

(
    bool bIgnoreTrueBlack,
    bool bUseGrayscale
)

Gets the average brightness of the texture (in linear space)

Public function

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API)in ...

 

GetCachedLODBias()

Returns the cached combined LOD bias based on texture LOD group and LOD bias.

LOD bias

Public function Virtual

TMap < FStrin ...

 

GetCookedPlatformData()

Public function Virtual

FGuid

 

GetExternalTextureGuid()

Access the GUID which defines this texture's resources externally through FExternalTextureRegistry

Public function

const FGuid ...

 

GetLightingGuid()

Returns a unique identifier for this texture. Used by the lighting build and texture streamer.

Public function Virtual

EMaterialVal ...

 

GetMaterialType()

The material value type of this texture.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API)ui ...

 

GetMaximumDimension()

Return maximum dimension for this texture type.

Public function Static

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API)Te ...

 

GetMipGenSettingsFromString

(
    const TCHAR * InStr,
    bool bTextureGroup
)

Public function Static

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) c...

 

GetMipGenSettingsString

(
    TextureMipGenSettings InEnum
)

Public function Static

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) c...

 

GetPixelFormatEnum()

Retrieves the pixel format enum for enum <-> string conversions.

Public function Virtual

FTexturePlat ...

 

GetRunningPlatformData()

Textures that use the derived data cache must override this function and provide a pointer to the linked list of platform data.

Public function Virtual

float

 

GetSurfaceHeight()

The height of the surface represented by the texture.

Public function Virtual

float

 

GetSurfaceWidth()

The width of the surface represented by the texture.

Public function Static

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) c...

 

GetTextureGroupString

(
    TextureGroup InGroup
)

Public function

bool

 

HasHDRSource()

Checks whether this texture has a high dynamic range (HDR) source.

Public function

bool

 

IsAsyncCacheComplete()

Returns true if all async caching has completed.

Public function

bool

 

IsNormalMap()

True if the compression type is a normal map compression type

Public function

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

MarkPlatformDataTransient()

Marks platform data as transient.

Protected function

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

NotifyMaterials()

Notify any loaded material instances that the texture has changed.

Public function

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

ReleaseResource()

Resets the resource for the texture.

Public function

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

SerializeCookedPlatformData

(
    FArchive & Ar
)

Serializes cooked platform data.

Public function

void

 

SetLightingGuid()

Assigns a new GUID to a texture.

Public function

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

UpdateCachedLODBias()

Cache the combined LOD bias based on texture LOD group and LOD bias.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

UpdateResource()

Creates a new resource for the texture, and updates any cached references to the resource.

Public function Virtual

bool

 

UpdateStreamingStatus

(
    bool bWaitForMipFading
)

Updates the streaming status of the texture and performs finalization when appropriate.

Public function Virtual

void

 

WaitForStreaming()

Waits until all streaming requests for this texture has been fully processed.

Overridden from UObject

Name Description

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

BeginCacheForCookedPlatformData

(
    const ITargetPlatform * TargetP...
)

Begins caching platform data in the background for the platform requested

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

BeginDestroy()

Called before destroying the object.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

ClearAllCachedCookedPlatformData()

Clear all cached cooked platform data

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

ClearCachedCookedPlatformData

(
    const ITargetPlatform * TargetP...
)

Clears cached cooked platform data for specific platform

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

FinishDestroy()

Called to finish destroying the object.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

GetAssetRegistryTags

(
    TArray < FAssetRegistryTag >& OutTa...
)

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) b...

 

IsCachedCookedPlatformDataLoaded

(
    const ITargetPlatform * TargetP...
)

Have we finished loading all the cooked platform data for the target platforms requested in BeginCacheForCookedPlatformData

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) b...

 

IsPostLoadThreadSafe()

Called during async load to determine if PostLoad can be called on the loading thread.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) b...

 

IsReadyForFinishDestroy()

Called to check if the object is ready for FinishDestroy.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

PostCDOContruct()

Called after the C++ constructor has run on the CDO for a class.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

PostEditChangeProperty

(
    FPropertyChangedEvent & PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

PostInitProperties()

Called after the C++ constructor and after the properties have been initialized, including those loaded from config.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object, and immediately after any undo/redo.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

PreSave

(
    const ITargetPlatform * TargetP...
)

Presave function.

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

Serialize

(
    FArchive & Ar
)

WITH_EDITOR.

Overridden from IInterface_AssetUserData

Name Description

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

AddAssetUserData

(
    UAssetUserData * InUserData
)

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) c...

 

GetAssetUserDataArray()

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API)UA ...

 

GetAssetUserDataOfClass

(
    TSubclassOf < UAssetUserData > InUse...
)

Public function Virtual

[ENGINE_API](API\Runtime\Engine\AI\Navigation\ENGINE_API) v...

 

RemoveUserDataOfClass

(
    TSubclassOf < UAssetUserData > InUse...
)

Typedefs

Name

Description

FOnTextureSaved

Delegate type for texture save events ( Params: UTexture* TextureToSave )

Constants

Name

Description

PreSaveEvent

Triggered before a texture is being saved

References

Module

Engine

Header

Runtime/Engine/Classes/Engine/Texture.h