C_Texture .GetAtlasInfo
Jump to navigation
Jump to search
Flavors |
---|
Links |
Info |
Added in 8.1.5 |
Returns atlas info.
info = C_Texture.GetAtlasInfo(atlas)
Arguments
- atlas
- string - Name of the atlas
Returns
![](/images/8/8d/API_C_Texture.GetAtlasInfo.png)
MainPet-PetFamilyFrame, part of FileID 878877
- info
- AtlasInfo
Field | Type | Description |
---|---|---|
width | number | |
height | number | |
rawSize | table : 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