Unity之拓展Button:支持双击与长按

双击直接利用的eventData.clickCount实现,而长按则是在PointerDown的时候记录时间,而后在Update里判断时间便可,因为代码比较简单,直接上源码。web using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems
相关文章
相关标签/搜索