Unity's Event System is a way of sending events to game objects based on input. Event Triggers receive events and call functions you've assigned. This tutorial explores two Event Types: PointerEnter and PointerExit. I hope you enjoy!!
This is a great video! I'd just like to add that events aren't just for user input. I use them all over the place, as a very general way of decoupling my scripts. My scripts raise events whenever they do anything some other script might be interested in; and they have public methods for anything that you might want to do in response to an event. Then I just snap these together in the editor like LEGOs! Check out http://luminaryapps.com/blog/the-real-power-of-unityevent/ for my own tutorial video about this. :) Thank you, and please keep these cool videos coming!
This is a great video! I'd just like to add that events aren't just for user input. I use them all over the place, as a very general way of decoupling my scripts. My scripts raise events whenever they do anything some other script might be interested in; and they have public methods for anything that you might want to do in response to an event. Then I just snap these together in the editor like LEGOs! Check out http://luminaryapps.com/blog/the-real-power-of-unityevent/ for my own tutorial video about this. :)
ReplyDeleteThank you, and please keep these cool videos coming!