Dec 10, 2019

[UGUI] Detecting UI Touch

using UnityEngine.EventSystems;

EventSystem.current.IsPointerOverGameObject(int pointerId)

ex) Excluding Touch on UI
Touch touch = Input.touches[0];
if (EventSystem.current.IsPointerOverGameObject(touch.fingerId)) {     return; }
cs