public void OnDrag(PointerEventData eventData) { if (_dragging) { transform.parent.position = Input.mousePosition; _objectView.SetPosition(transform.parent.position); } }