标签:
//点击屏幕自对对焦 #if UNITY_EDITOR if(!EventSystem.current.IsPointerOverGameObject()&&Input.GetMouseButtonUp(0)) #elif UNITY_ANDROID || UNITY_IPHONE if (!EventSystem.current.IsPointerOverGameObject()&& Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began) #endif { Vuforia.CameraDevice.Instance.SetFocusMode(Vuforia.CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO); }
EventSystem.current.IsPointerOverGameObject()为判断是否点击在当前UI上
标签:
原文地址:http://www.cnblogs.com/townsend/p/4233130.html