程序实现效果:
using UnityEngine.EventSystems;
void Update()
{
//鼠标按下的时候认为是退出状态
if (Input.GetKey(KeyCode.Mouse0) || Input.GetKey(KeyCode.Mouse1))
{
//除了leftAlt键盘之外
if (Input.GetKey(KeyCode.LeftControl))
{
return;
}
mouse_Hover_Exit(null);
}
}
void Start()
{
WindowCtrl_Click();
}
private void