实现鼠标双击(OnGUI)

void OnGUI()//实现鼠标双击
{
  Event Mouse = Event.current;
  if (Mouse.isMouse && Mouse.type == EventType.MouseDown && Mouse.clickCount == 2)
  {
  print("Double Click");
  }

}

posted @ 2017-08-11 12:02  IT_yanghui  阅读(395)  评论(1编辑  收藏  举报