ReferenceMatchResultMatchResult:getY()✦Use with AI▾本页总览MatchResult:getY() 返回匹配区域左上角的 Y 坐标。 描述 getY() 方法返回在屏幕上找到匹配项的左上角垂直位置(Y 坐标)。该值表示距离屏幕顶边缘的像素位置。 签名 getY(): number 返回值 number - 匹配区域左上角的 Y 坐标(以像素为单位)。 示例 local result = Screen:find("template.png")if result then local y = result:getY() toast("Match found at Y position: " .. y)end