jisi

导航

2017年2月27日

unity检测鼠标是点击在UI上还是物体上

摘要: void Update() { if (Input.GetMouseButtonDown(0)||(Input.touchCount >0 && Input.GetTouch(0).phase == TouchPhase.Began)) { #if IPHONE || ANDROID if (EventSystem.current.IsPointerOverGameObject(... 阅读全文

posted @ 2017-02-27 21:55 jisikeji 阅读(601) 评论(0) 推荐(0) 编辑