FSlateTexture2DRHIRef::UpdateTexture

Updates the texture contents via a byte array.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FSlateUpdatableTexture::UpdateTexture()

FSlateTexture2DRHIRef::UpdateTexture()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SlateTextures.h

Include

#include "Slate/SlateTextures.h"

Source

/Engine/Source/Runtime/Engine/Private/Slate/SlateTextures.cpp

Syntax

virtual void UpdateTexture
(
    const TArray< uint8 > & Bytes
)

Remarks

Updates the texture contents via a byte array.

This method is not thread safe so make sure you do not use the Bytes data on another after it is passed in

Parameters

Parameter

Description

Bytes

Array of texture data