void OnGUI()//实现鼠标双击
{
Event Mouse = Event.current;
if (Mouse.isMouse && Mouse.type == EventType.MouseDown && Mouse.clickCount == 2)
{
print("Double Click");
}
}
void OnGUI()//实现鼠标双击
{
Event Mouse = Event.current;
if (Mouse.isMouse && Mouse.type == EventType.MouseDown && Mouse.clickCount == 2)
{
print("Double Click");
}
}
转载于:https://www.cnblogs.com/yanghui0702/p/yanghui20170811.html