New Event System

Okay so I was stuck on Unity 4 for a while, didn’t want to upgrade because I was familiar with how 4 worked and didn’t feel like re-learning the new bits of 5.

I’ve finally upgraded to 5 and I’m royally confused.

I see they’ve reworked the UI systems, no more send message, I didn’t use it much anyway, no big deal. Where I get confused is the purpose of the new Event System. Should it be used for anything other than UI? Specifically, should I be using the event system to handle ALL all the input I used to handle via the old GetButtonDown() methods or is that now not necessary?

I guess I’m asking if the event system is meant to handle UI movements or all movements?

Mainly UI but it’s also a fairly powerful generic event system you can use to ease communication between objects.

No reason to use it instead of Input.GetButtonXYZ functions.

All the old stuff is still there. But to fully embrace the new stuff:

  • UI replaces all OnGUI
  • ExecuteEvents replaces SendMessage
  • OnMouseXXX is replaced with the EventSystem, PhysicsRaycaster and the various supported event interfaces