How do I use custom events in Unity?
Create a Custom Event through the Unity Dashboard
Go to the Event Manager and select Add New > Custom Event and give it a name and description. The first character of your event name needs to be a letter, then any alphanumeric character. Underscores are also allowed.
How do I create a custom event handler?
Creating a Custom Event: To create a custom event we use the Event constructor or CustomEvent interface. The Event constructor creates an Event and CustomEvent creates an Event with more functionality. The below steps are followed in order to create one using a new Event. We create an event using the Event constructor.