I was looking around in the UnityEngine.UI source code. I was trying to understand how does the event system know what classes are implementing the IDragHandler interface, or any other eventsystem interface.
I got to a place where is a readonly objectbool> or something like this. But i didn't find where it was populated with data.
Does someone know how does the evetsystem know if a class is implementing an interface from the eventsystem? I found no place where the interface registers itself.