UTextureRenderTarget2DArray::ConstructTexture2DArray

Utility for creating a new [UTexture2DArray](API\Runtime\Engine\Engine\UTexture2DArray) from a TextureRenderTarget2DArray.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/TextureRenderTarget2DArray.h

Include

#include "Engine/TextureRenderTarget2DArray.h"

Source

/Engine/Source/Runtime/Engine/Private/TextureRenderTarget2DArray.cpp

Syntax

UTexture2DArray * ConstructTexture2DArray
(
    UObject * InOuter,
    const FString & NewTexName,
    EObjectFlags InFlags
)

Remarks

Utility for creating a new UTexture2DArray from a TextureRenderTarget2DArray. TextureRenderTarget2DArray must be square and a power of two size.

Returns

New UTexture2DArray object.

Parameters

Parameter

Description

Outer

Outer to use when constructing the new Texture2DArray.

NewTexName

Name of new UTexture2DArray object.

Flags

Various control flags for operation (see EObjectFlags)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss