API 参考ui 模块getElementAtMouse 获取鼠标位置的元素On this pagegetElementAtMouse 获取鼠标位置的元素getElementAtMouse 类型: MethodDeclaration 定义位置: ui.ts 描述 获取鼠标位置的元素 返回值:元素实例 返回值 类型: UIElement 元素实例 源代码 位置: 第 338 行 public getElementAtMouse(): UIElement { return UI.getElementAt(Mouse.screenX, Mouse.screenY) } 文档生成时间:2025/7/7 12:07:07