private void UpdateEventData(GameObject dragGameObject) { if (m_eventData == null) { m_eventData = new DragEventData(); } m_eventData.Drag = dragGameObject; m_eventData.PointerDelta = PointerDelta; m_eventData.PointerCurrent = Input.mousePosition; m_eventData.IsMoving = IsMoving; }
public void OnDrag(DragEventData eventData) { m_previousPosition = RectTransform.position; RectTransform.position += eventData.PointerDelta; KeepInScreen(); }
public void OnEndDrag(DragEventData eventData) { }
public void OnBeginDrag(DragEventData eventData) { }