FSlateTextureAtlas::FindSlotForTexture

Finds the optimal slot for a texture in 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 * 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

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