标签:bug touch use pointer current android over nbsp down
if (Input.GetMouseButtonDown(0) || (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began)) { #if UNITY_ANDROID || UNITY_IPHONE if (EventSystem.current.IsPointerOverGameObject(Input.GetTouch(0).fingerId)) #else if (EventSystem.current.IsPointerOverGameObject()) #endif Debug.Log("触摸"); else Debug.Log("非触摸"); }
标签:bug touch use pointer current android over nbsp down
原文地址:https://www.cnblogs.com/llstart-new0201/p/10097065.html