FSlateTextureAtlas::FindSlotForTexture

Finds the optimal slot for a texture in 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 * FindSlotForTexture
(
    uint32 InWidth,
    uint32 InHeight
)

Remarks

Finds the optimal slot for a texture in the atlas

Parameters

Parameter

Description

Width

The width of the texture we are adding

Height

The height of the texture we are adding