FSlateTextureAtlas::AddTexture

Adds a texture to the atlas

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Textures/TextureAtlas.h

Include

#include "Textures/TextureAtlas.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Textures/TextureAtlas.cpp

Syntax

const FAtlasedTextureSlot * AddTexture
(
    uint32 TextureWidth,
    uint32 TextureHeight,
    const TArray< uint8 > & Data
)

Remarks

Adds a texture to the atlas

Parameters

Parameter

Description

TextureWidth

Width of the texture

TextureHeight

Height of the texture

Data

Raw texture data

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