Unity程序框内,鼠标操作失效
//定义运行区域为屏幕,如果鼠标出屏幕则停止运行
? ?? ???Rect screenRect = new Rect(0,0,Screen.width,Screen.height);
? ?? ???if( !screenRect.Contains(Input.mousePosition)) return;
发布时间: 2012-10-12 10:17:04 作者: rapoo
Unity程序框内,鼠标操作失效
//定义运行区域为屏幕,如果鼠标出屏幕则停止运行
? ?? ???Rect screenRect = new Rect(0,0,Screen.width,Screen.height);
? ?? ???if( !screenRect.Contains(Input.mousePosition)) return;