The API is no longer being updated here until further notice. |
Sets a numeric identifier for the frame.
Frame:SetID(id)
Arguments[]
- id
- number - Only supports integers.
Details[]
- Frame IDs have no effect on frame behavior, but can be a useful way to keep track of multiple similar frames, especially in cases where a list of frames is created from a template (such as for action buttons, loot slots, or lines in a FauxScrollFrame); or when frames might be constructed in a different order than they appear.
- For example,
ContainerFrame1
is the bag frame nearest the bottom-right corner of the screen. However, its ID changes to indicate which bag it represents.