实现鼠标双击(OnGUI)
void OnGUI()//实现鼠标双击
{
Event Mouse = Event.current;
if (Mouse.isMouse && Mouse.type == EventType.MouseDown && Mouse.clickCount == 2)
{
print("Double Click");
}
}
好好把握每一次学习的机会,你会发现自己时刻在成长!
不想放弃梦想,所以一直坚持,虽无人鼓励,但要活出自己!