C_Texture .GetAtlasInfo
Jump to navigation
Jump to search
Returns atlas info.
info = C_Texture.GetAtlasInfo(atlas)
Arguments
- atlas
- string - Name of the atlas
Returns
- info
- AtlasInfo
Field | Type | Description |
---|---|---|
width | number | |
height | number | |
rawSize | vector2🔗 | |
leftTexCoord | number | |
rightTexCoord | number | |
topTexCoord | number | |
bottomTexCoord | number | |
tilesHorizontally | boolean | |
tilesVertically | boolean | |
file | number? | FileID of parent texture |
filename | string? | |
sliceData | UITextureSliceData? |
Field | Type | Description |
---|---|---|
marginLeft | number | |
marginTop | number | |
marginRight | number | |
marginBottom | number | |
sliceMode | Enum.UITextureSliceMode |
Value | Field | Description |
---|---|---|
0 | Stretched | Default |
1 | Tiled |
Patch changes
Patch 10.2.0 (2023-11-07): Added rawSize
and sliceData
fields.
Patch 8.1.0 (2018-12-11): Changed to C_Texture.GetAtlasInfo()
and returns structured data.[1]
Patch 6.0.2 (2014-10-14): Added as GetAtlasInfo()
.
See also
- Texture:GetAtlas()
- Texture:SetAtlas()
- UI CreateAtlasMarkup - Returns an inline fontstring texture from an atlas
- Helix/AtlasInfo.lua - Lua table containing atlas info
- UiTextureAtlasMember.db2 - DBC for atlases
- Texture Atlas Viewer - Addon for browsing atlases in-game