InitializeModule function was not found on UE4.15

Hey there,
I have a plugin that works fine with UE4.12.
When I compile it via Visual Studio with UE4.15 selected, I don’t get any compiling errors, but when I start the UE Project the following window appears:

138407-eyetrackingpluginerror.jpg

When I press “OK” the Engine crashes and in the project crash log file I can find the following error:

LogModuleManager:Warning:
ModuleManager: Unable to load module
‘C:/Users/Caro/Documents/Uni/Bachelorarbeit/EyetrackingPluginTest4_15/clfvr.ue_assets_and_plugins/Template4_12/Plugins/EyeTracking/Binaries/Win64/UE4Editor-EyeTrackingPlugin.dll’
because InitializeModule function was
not found.

Where should this function be, so I could create it? Or is the error missleading and something else is wrong?

Thanks for your help

Ok I’m not completely sure but I think I got the answer:

You need a constructor for your UCLASS with ObjectInitializer and additionally a class FMyPluginModule.h and FMyPluginModule.cpp that inherits from IModuleInterface and overrides the methods StartupModule() and ShutdownModule().

I just created a new plugin and copied all the code from the old one into the new one, so I did not had to worry about the new structure a lot.

There’s a macro defined in Engine\Source\Runtime\Core\Public\Modules\ModuleManager.h called IMPLEMENT_MODULE which implements the InitializeModule function. See the example plugins (BlankPlugin and
UObjectPlugin) for examples of its use.