MatchResult:highlight()
Draw a temporary rectangle around the matched region so you can see what was found.
Signature
highlight(): void
Returns
void
Description
The rectangle is shown for about two seconds and then removed. It is drawn over the screen, so it appears in screen captures taken while it is visible. Useful while tuning a template or a match score.
Example
local result = Screen:find("button.png")
if result then
result:highlight()
end