Wednesday, February 4, 2015

Using Unity's Event Message System (Unity 4.6)

It's been a while since my last post, but typing away in my Info Tech class today really got me in the mood for a blog post. I'm happy to be back, so let's get started!


Unity recently updated it's messaging system...







It used to be as easy as:

target.SendMessage(string methodName);

Now it looks like this:

ExecuteEvents.Execute(GameObject target, BaseEventData eventData, EventFunction functor);

Lets look at how to utilize the new approach...