C_Texture.GetAtlasInfo

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Patch
Added in 8.1.5 / 2.5.1 / 1.14.0

Returns atlas info.

info = C_Texture.GetAtlasInfo(atlas)

Arguments

atlas
string - Name of the atlas

Returns

info
AtlasInfo
Field Type Description
elementName string 11.1.5
width number
height number
rawSize table : vector2 10.2.0
leftTexCoord number
rightTexCoord number
topTexCoord number
bottomTexCoord number
tilesHorizontally boolean
tilesVertically boolean
file number? : fileID FileID of parent texture
filename string?
sliceData UITextureSliceData? 10.2.0
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

  • BattleForAzeroth-Logo-Small.png Patch 8.1.0 (2018-12-11): Changed to C_Texture.GetAtlasInfo() and returns structured data.[1]
  • WoD-Logo-Small.png Patch 6.0.2 (2014-10-14): Added as GetAtlasInfo().

See also