Supported Events
The Event System supports a number of events, and they can be customized further in user custom user written Input Modules.
The events that are supported by the Standalone Input Module and Touch Input Module are provided by interface and can be implemented on a MonoBehaviour by implementing the interface. If you have a valid Event System configured the events will be called at the correct time.
- IPointer
Enter - OnPointerEnter - Called when a pointer enters the objectHandler - IPointer
Exit - OnPointerExit - Called when a pointer exits the objectHandler - IPointer
Down - OnPointerDown - Called when a pointer is pressed on the objectHandler - IPointer
Up - OnPointerUp - Called when a pointer is released (called on the GameObject that the pointer is clicking)Handler - IPointer
Click - OnPointerClick - Called when a pointer is pressed and released on the same objectHandler - IInitialize
Potential - OnInitializePotentialDrag - Called when a drag target is found, can be used to initialize valuesDrag Handler - IBegin
Drag - OnBeginDrag - Called on the drag object when dragging is about to beginHandler - IDrag
Handler - OnDrag - Called on the drag object when a drag is happening - IEnd
Drag - OnEndDrag - Called on the drag object when a drag finishesHandler - IDrop
Handler - OnDrop - Called on the object where a drag finishes - IScroll
Handler - OnScroll - Called when a mouse wheel scrolls - IUpdate
Selected - OnUpdateSelected - Called on the selected object each tickHandler - ISelect
Handler - OnSelect - Called when the object becomes the selected object - IDeselect
Handler - OnDeselect - Called on the selected object becomes deselected - IMove
Handler - OnMove - Called when a move event occurs (left, right, up, down) - ISubmit
Handler - OnSubmit - Called when the submit button is pressed - ICancel
Handler - OnCancel - Called when the cancel button is pressed