Navigation
API > API/Runtime > API/Runtime/Engine
Note : UTexture2DDynamic derives directly from UTexture not from UTexture2DUTexture2DDynamic is a base for textures that don't have a TextureSource
| Name | UTexture2DDynamic |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture2DDynamic.h |
| Include Path | #include "Engine/Texture2DDynamic.h" |
Syntax
UCLASS (HideCategories=Object, MinimalAPI)
class UTexture2DDynamic : public UTexture
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UStreamableRenderAsset → UTexture → UTexture2DDynamic
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UTexture2DDynamic
(
const FObjectInitializer& ObjectInitializer |
Engine/Texture2DDynamic.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsResolveTarget | uint8 | Whether the texture can be used as a resolve target. | Engine/Texture2DDynamic.h | |
| Format | TEnumAsByte< enum EPixelFormat > | The format of the texture. | Engine/Texture2DDynamic.h |
|
| NumMips | int32 | The number of mip-maps in the texture. | Engine/Texture2DDynamic.h | |
| SamplerAddressMode | ESamplerAddressMode | The sampler default address mode for this texture. | Engine/Texture2DDynamic.h | |
| SizeX | int32 | The width of the texture. | Engine/Texture2DDynamic.h | |
| SizeY | int32 | The height of the texture. | Engine/Texture2DDynamic.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Init
(
int32 InSizeX, |
Initializes the texture with 1 mip-level and creates the render resource. | Engine/Texture2DDynamic.h |
Overridden from UTexture
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FTextureResource * CreateResource() |
Implemented by subclasses to create a new resource for the texture. | Engine/Texture2DDynamic.h | |
virtual EMaterialValueType GetMaterialType() |
Engine/Texture2DDynamic.h | ||
virtual uint32 GetSurfaceArraySize() |
Engine/Texture2DDynamic.h | ||
virtual float GetSurfaceDepth() |
Engine/Texture2DDynamic.h | ||
virtual float GetSurfaceHeight() |
Engine/Texture2DDynamic.h | ||
virtual float GetSurfaceWidth() |
Engine/Texture2DDynamic.h | ||
virtual ETextureClass GetTextureClass() |
Get Texture Class | Engine/Texture2DDynamic.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UTexture2DDynamic * Create
(
int32 InSizeX, |
Engine/Texture2DDynamic.h | ||
static UTexture2DDynamic * Create
(
int32 InSizeX, |
Creates and initializes a new Texture2DDynamic with the requested settings | Engine/Texture2DDynamic.h | |
static UTexture2DDynamic * Create
(
int32 InSizeX, |
Engine/Texture2DDynamic.h |