Frame:GetLayer()

From Riftui Wiki

Jump to: navigation, search

Returns the frames current layer position. See Frame:SetLayer() for more information.

Contents

Signature

layer = frame:GetLayer()

Parameters

None

Return Value

layer (number) - a number representing the frame's layer position.

Example

local context = UI.CreateContext("SampleContext")
local frame = UI.CreateFrame("Frame", "SampleFrame", context)
frame:SetLayer(2)
-- Should print "2" --
print(frame:GetLayer())
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox