C_Texture.GetAtlasInfo

From Warcraft Wiki
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?
UITextureSliceData
Field Type Description
marginLeft number
marginTop number
marginRight number
marginBottom number
sliceMode Enum.UITextureSliceMode
Enum.UITextureSliceMode
Value Field Description
0 Stretched Default
1 Tiled

Patch changes

Dragonflight Patch 10.2.0 (2023-11-07): Added rawSize and sliceData fields.
Battle for Azeroth Patch 8.1.0 (2018-12-11): Changed to C_Texture.GetAtlasInfo() and returns structured data.[1]
Warlords of Draenor Patch 6.0.2 (2014-10-14): Added as GetAtlasInfo().

See also