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