FSlateTextureAtlas::AddTexture

Adds a texture to the atlas

Choose your operating system:

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