Sometimes, you want to add listeners on particular events not natively provided by the components, in particular mouse events. To do so, you will have to add them by yourself using an EventTrigger component :
using UnityEngine;
using UnityEngine.EventSystems;
[RequireComponent(typeof( EventTrig...