UTexture2DDynamic::Init

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

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Engine/Texture2DDynamic.h"

Source

/Engine/Source/Runtime/Engine/Private/Texture2DDynamic.cpp

Syntax

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

Remarks

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

Parameters

Parameter

Description

InSizeX

Width of the texture, in texels

InSizeY

Height of the texture, in texels

InFormat

Format of the texture, defaults to PF_B8G8R8A8

InIsResolveTarget

Whether the texture can be used as a resolve target

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