ReferenceMatchResultMatchResult:getWidth()✦Use with AI▾本页总览MatchResult:getWidth() 返回匹配区域的宽度。 签名 getWidth(): number 返回值 number - 宽度,以像素为单位。 示例 local result = Screen:find("button.png")if result then toast("Matched " .. result:getWidth() .. " px wide")end