Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UTexture2DArray |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture2DArray.h |
| Include Path | #include "Engine/Texture2DArray.h" |
Syntax
UCLASS (HideCategories=Object, MinimalAPI, BlueprintType)
class UTexture2DArray : public UTexture
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UStreamableRenderAsset → UTexture → UTexture2DArray
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UTexture2DArray
(
const FObjectInitializer& ObjectInitializer |
Engine/Texture2DArray.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AddressX | TEnumAsByte< enum TextureAddress > | The addressing mode to use for the X axis. | Engine/Texture2DArray.h |
|
| AddressY | TEnumAsByte< enum TextureAddress > | The addressing mode to use for the Y axis. | Engine/Texture2DArray.h |
|
| AddressZ | TEnumAsByte< enum TextureAddress > | The addressing mode to use for the Z axis. | Engine/Texture2DArray.h |
|
| bSourceGeneratedFromSourceTexturesArray | bool | Is set to true if the source texture was generated from the SourceTextures array (which is not always the case, i.e. the source texture could be imported from a DDS file containing multiple slices). | Engine/Texture2DArray.h |
|
| CookedPlatformData | TMap< FString, FTexturePlatformData * > | Engine/Texture2DArray.h | ||
| PrivatePlatformData | FTexturePlatformData * | The derived data for this texture on this platform. | Engine/Texture2DArray.h | |
| SourceTextures | TArray< TObjectPtr< UTexture2D > > | Add Textures | Engine/Texture2DArray.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 CalcTextureMemorySize
(
int32 MipCount |
Calculates the size of this texture in bytes if it had MipCount mip-levels streamed in. | Engine/Texture2DArray.h | |
bool CheckArrayTexturesCompatibility() |
Engine/Texture2DArray.h | ||
int32 GetArraySize() |
Engine/Texture2DArray.h | ||
bool GetMipData
(
int32 InFirstMipToLoad, |
Makes a copy of the mip chain for the texture array starting with InFirstMipToLoad. | Engine/Texture2DArray.h | |
int32 GetNumMips() |
Engine/Texture2DArray.h | ||
int32 GetNumResidentMips() |
Engine/Texture2DArray.h | ||
EPixelFormat GetPixelFormat() |
Engine/Texture2DArray.h | ||
| Get the derived data for this texture on this platform. | Engine/Texture2DArray.h | ||
const FTexturePlatformData * GetPlatformData () |
Get the const derived data for this texture on this platform. | Engine/Texture2DArray.h | |
int32 GetSizeX() |
Engine/Texture2DArray.h | ||
int32 GetSizeY() |
Engine/Texture2DArray.h | ||
void InvalidateTextureSource() |
Engine/Texture2DArray.h | ||
void SetPlatformData
(
FTexturePlatformData* PlatformData |
Set the derived data for this texture on this platform. | Engine/Texture2DArray.h | |
bool UpdateSourceFromSourceTextures
(
bool bCreatingNewTexture |
Engine/Texture2DArray.h |
Overridden from UTexture
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual uint32 CalcTextureMemorySizeEnum
(
ETextureMipCount Enum |
Calculates the size of this texture if it had MipCount mip levels streamed in. | Engine/Texture2DArray.h | |
virtual FTextureResource * CreateResource() |
Implemented by subclasses to create a new resource for the texture. | Engine/Texture2DArray.h | |
virtual TMap< FString, FTexturePlatformData * > * GetCookedPlatformData() |
Engine/Texture2DArray.h | ||
virtual EMaterialValueType GetMaterialType() |
Engine/Texture2DArray.h | ||
virtual uint32 GetMaximumDimension() |
Return maximum dimension for this texture type. | Engine/Texture2DArray.h | |
virtual FTexturePlatformData ** GetRunningPlatformData() |
Textures that use the derived data cache must override this function and provide a pointer to the linked list of platform data. | Engine/Texture2DArray.h | |
virtual uint32 GetSurfaceArraySize() |
Engine/Texture2DArray.h | ||
virtual float GetSurfaceDepth() |
Engine/Texture2DArray.h | ||
virtual float GetSurfaceHeight() |
Engine/Texture2DArray.h | ||
virtual float GetSurfaceWidth() |
Engine/Texture2DArray.h | ||
virtual TextureAddress GetTextureAddressX() |
Engine/Texture2DArray.h | ||
virtual TextureAddress GetTextureAddressY() |
Engine/Texture2DArray.h | ||
virtual TextureAddress GetTextureAddressZ() |
Engine/Texture2DArray.h | ||
virtual ETextureClass GetTextureClass() |
Get Texture Class | Engine/Texture2DArray.h | |
virtual bool IsDefaultTexture() |
Returns true if the current texture is a default placeholder because compilation is still ongoing. | Engine/Texture2DArray.h | |
virtual void UpdateResourceWithParams
(
EUpdateResourceFlags InFlags |
Creates a new resource for the texture, and updates any cached references to the resource. | Engine/Texture2DArray.h |
Overridden from UStreamableRenderAsset
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 CalcCumulativeLODSize
(
int32 NumLODs |
Engine/Texture2DArray.h | ||
virtual bool StreamIn
(
int32 NewMipCount, |
Loads mips from disk to memory. Only usable if the asset is streamable. | Engine/Texture2DArray.h | |
virtual bool StreamOut
(
int32 NewMipCount |
Unload some mips from memory. Only usable if the asset is streamable. | Engine/Texture2DArray.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetAssetRegistryTags
(
FAssetRegistryTagsContext Context |
Engine/Texture2DArray.h | ||
virtual void GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Engine/Texture2DArray.h | ||
virtual FString GetDesc() |
Engine/Texture2DArray.h | ||
virtual void GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
Engine/Texture2DArray.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Engine/Texture2DArray.h | ||
virtual void PostLoad() |
Engine/Texture2DArray.h | ||
virtual void Serialize
(
FArchive& Ar |
Engine/Texture2DArray.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UTexture2DArray * CreateTransient
(
int32 InSizeX, |
Creates and initializes a new Texture2DArray with the requested settings | Engine/Texture2DArray.h |