FTextureReferenceReplacer

Replaces the RHI reference of one texture with another.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture.h

Include

#include "Engine/Texture.h"

Syntax

struct FTextureReferenceReplacer

Remarks

Replaces the RHI reference of one texture with another. Allows one texture to be replaced with another at runtime and have all existing references to it remain valid.

Variables

Name Description

Public variable

FTextureReferen...

 

OriginalRef

Constructors

Name Description

Public function

FTextureReferenceReplacer

(
    UTexture* OriginalTexture
)

Functions

Name Description

Public function

void

 

Replace

(
    UTexture* NewTexture
)

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