Frame:SetFlattensRenderLayers

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Dragonflight-Icon-Inline.png  BTNTemp.png Frame:GetFlattensRenderLayers
GitHub Octocat.png  Dragonflight-Icon-Inline.png  BTNTemp.png Frame:GetEffectivelyFlattensRenderLayers
GitHub Octocat.png  Dragonflight-Icon-Inline.png  BTNTemp.png Frame:SetFlattensRenderLayers

Controls whether all subregions are composited into a single render layer.

Frame:SetFlattensRenderLayers(flatten)

Arguments

flatten
boolean - If true, enables render layer flattening.

Details

  • When enabled, all descendant textures and fontstrings will be flattened into a single "layer" for rendering. This can be used to prevent a visual effect where unrelated overlapping frames appear to render interleaved with one another.
  • This function only controls an explicit request for render layer flattening. Render layer flattening can also be enabled implicitly through other frame attributes and APIs.

See also