标签:math cal eve mon hold events ems def drag
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)); } }
标签:math cal eve mon hold events ems def drag
原文地址:https://www.cnblogs.com/sy-liu/p/12929577.html