How to easily change Default Events to Fit your Needs
If you are familiarized with UE4 and you are a programmer, you have probably thought more than once:
Wouldn’t it be awesome to define my own default events for my awesome actors?
Well, you can. And it’s quite simple once you know how.
Registering Default Events
With that being said, the only thing we need to do is to add some changes to our editor module.
Inside ‘EditorModule.h’ we will only add a function where we will contain all our event registrations
and a macro that allows us to register them
#define RegisterDefaultEvent(Class, FuncName) ...
Inside our .cpp file, we will call RegisterDefaultEvent for each event we want to set as default.
Last thing! We must call Unregister function when the module is shutdown to allow the engine to for example hot-reload the plugin.
Now you are able of customizing a little bit more your classes. I originally wrote this to remember it to myself but hope it helped to you.