1. 鼠标双击
void OnGUI()
{
Event Mouse = Event.current;
if (Mouse.isMouse && Mouse.type == EventType.MouseDown && Mouse.clickCount == 2)
{
// 调用你的函数
print("Double Click");
}
}
2023-10-04 17:44:34
1. 鼠标双击
void OnGUI()
{
Event Mouse = Event.current;
if (Mouse.isMouse && Mouse.type == EventType.MouseDown && Mouse.clickCount == 2)
{
// 调用你的函数
print("Double Click");
}
}