void OnGUI()//实现鼠标双击
{
Event Mouse = Event.current;
if (Mouse.isMouse && Mouse.type == EventType.MouseDown && Mouse.clickCount == 2)
{
print("Double Click");
}
}
2023-10-11 16:34:04
void OnGUI()//实现鼠标双击
{
Event Mouse = Event.current;
if (Mouse.isMouse && Mouse.type == EventType.MouseDown && Mouse.clickCount == 2)
{
print("Double Click");
}
}