Frame:SetFlattensRenderLayers
Jump to navigation
Jump to search
Frame:GetFlattensRenderLayers |
||
Frame:GetEffectivelyFlattensRenderLayers |
||
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
- Frame:SetToplevel implicitly enables render layer flattening.