Navigation
API > API/Runtime > API/Runtime/Engine
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.
| Name | FTextureReferenceReplacer |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/TextureReferenceResolver.h |
| Include Path | #include "TextureReferenceResolver.h" |
Syntax
struct FTextureReferenceReplacer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTextureReferenceReplacer
(
UTexture* OriginalTexture |
TextureReferenceResolver.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OriginalRef | FTextureReferenceRHIRef | TextureReferenceResolver.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Replace
(
UTexture* NewTexture |
TextureReferenceResolver.h |