FSlateAtlasData

The data representing a region of a [UTexture](API\Runtime\Engine\Engine\UTexture) atlas.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

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

Include

#include "Slate/SlateTextureAtlasInterface.h"

Syntax

struct FSlateAtlasData

Remarks

The data representing a region of a UTexture atlas.

Variables

Name Description

Public variable

UTexture *

 

AtlasTexture

The texture pointer for the Atlas

Public variable

FVector2D

 

SizeUV

The region size in UVs.

Public variable

FVector2D

 

StartUV

The region start position in UVs

Constructors

Name Description

Public function

FSlateAtlasData

(
    UTexture* InAtlasTexture,
    FVector2D InStartUV,
    FVector2D InSizeUV
)

Functions

Name Description

Public function Const

FVector2D

 

GetSourceDimensions()

Gets the dimensions of the atlas region in pixel coordinates.