if (UICamera.hoveredObject != null) Debug.Log(UICamera.hoveredObject.name);
hoveredObject就是一个UICamera通过鼠标位置用射线检测到的UI物体。