Unity實現UGUI中按鈕的單機、右擊和中鍵點擊的斷定

直接上代碼吧,把這個代碼綁定到Unity的相應Button上便可實現。web public class RightClick : MonoBehaviour, IPointerClickHandler { public UnityEvent leftClick; public UnityEvent middleClick; public UnityEvent rightC
相關文章
相關標籤/搜索