UTexture2DDynamic

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture2DDynamic.h

Include

#include "Engine/Texture2DDynamic.h"

Syntax

class UTexture2DDynamic : public UTexture

Variables

Name Description

Public variable

uint8: 1

 

bIsResolveTarget

Whether the texture can be used as a resolve target.

Public variable

TEnumAsByte< en...

 

Format

The format of the texture.

Public variable

int32

 

NumMips

The number of mip-maps in the texture.

Public variable

ESamplerAddress...

 

SamplerAddressMode

The sampler default address mode for this texture.

Public variable

int32

 

SizeX

The width of the texture.

Public variable

int32

 

SizeY

The height of the texture.

Constructors

Name Description

Public function

UTexture2DDynamic

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

UTexture2DDy...

 

Create

(
    int32 InSizeX,
    int32 InSizeY,
    const FTexture2DDynamicCreateInfo&...
)

Creates and initializes a new Texture2DDynamic with the requested settings

Public function

void

 

Init

(
    int32 InSizeX,
    int32 InSizeY,
    EPixelFormat InFormat,
    bool InIsResolveTarget
)

Initializes the texture with 1 mip-level and creates the render resource.

Overridden from UTexture

Name Description

Public function Virtual

FTextureReso...

 

CreateResource()

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

Public function Virtual Const

EMaterialVal...

 

GetMaterialType()

Public function Virtual Const

float

 

GetSurfaceHeight()

Public function Virtual Const

float

 

GetSurfaceWidth()

Deprecated Functions

Name Description

Public function Static

UTexture2DDy...

 

Create

(
    int32 InSizeX,
    int32 InSizeY,
    EPixelFormat InFormat
)

Please use UTexture2DDynamic::Create() with FTexture2DDynamicCreateInfo initialization

Public function Static

UTexture2DDy...

 

Create

(
    int32 InSizeX,
    int32 InSizeY,
    EPixelFormat InFormat,
    bool InIsResolveTarget
)

Please use UTexture2DDynamic::Create() with FTexture2DDynamicCreateInfo initialization

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback