using UnityEngine; using UnityEngine.EventSystems; public class DragThresholdUtil : MonoBehaviour { // Start is called before the first frame update void Start() { int defaultDrayTheshold = EventSystem.current.pixelDragThreshold; EventSystem.current.pixelDragThreshold = Mathf.Max(defaultDrayTheshold, (int)(defaultDrayTheshold * Screen.dpi / 160f)); } }