API Frame SetHitRectInsets

104,670pages on
this wiki
Add New Page
Talk0 Share
Widget API ← Frame < SetHitRectInsets

Modifies the size of the frame's hit rectangle - the area in which clicks are sent to the frame in question.

frame:SetHitRectInsets(left, right, top, bottom);

Arguments Edit

Number - pixels to move the frame's left hit edge to the right by.
Number - pixels to move the frame's right hit edge to the left by.
Number - pixels to move the frame's top hit edge down by.
Number - pixels to move the frame's bottom hit edge up by.

Notes Edit

  • Negative values of left, right, top and botton may be used to move the edges away from the frames center, potentially extending a frame's hit rectangle outside of the frame itself.
  • This method will silently fail if called on a protected frame in combat from insecure code.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki