Non UI Events with the new event system

Hi All,

I want to use the event system. It works on the UI, but I also want to use elements that are not part of the UI.
I have spawned a sprite in script and I want to be able to drag it around. It has a sprite renderer and the script below attached to it, but I can’t get it to recognize event. Am I missing something?

public class BoardLetter : MonoBehaviour, IBeginDragHandler, IPointerDownHandler 
{

    public void OnBeginDrag(PointerEventData eventData)
    {
        Debug.Log("This works");
    }

    public void OnPointerDown (PointerEventData eventData)
    {
        Debug.Log("This works");
    }
}

Did you add a physics (or physics2d) raycaster to the camera? The object in question must also have an appropriate collider.

I could have sworn I tried that…

Edit: I did try it, but it works for OnPointerDown and not for OnBeginDrag. Got any suggestions?

Edit2: I got it to work by using OnPointerDown as OnBeginDrag.