# Get the dropped object using IDropHandler.OnDrop

In Canvas, I drag some UI objects to a panel using this code:

public void OnDrag(PointerEventData eventData)
{
Vector3 screenPoint = Input.mousePosition;
screenPoint.z = 10.0f;
Item2Drag.position = Camera.main.ScreenToWorldPoint(screenPoint);
}


But what I can't figure out is when I dropped an object on the panel, how can I get the gameObject which has been dropped?

I can get it by eventData.pointerDrag from OnDrop function.
public void OnDrop(PointerEventData eventData)