Two modules in one plugin
Is it possible to have two (or more) modules in one plugin and if yes, how is it done?
I have found mentions that say it's possible, but nothing concrete and everything I've tried ended in errors.
Background is that I want to create a plugin that relies heavily on an already existing plugin from the marketplace (the licences cover that as far as I know. Please correct me if I'm wrong). But having plugins depend on other plugins seems to be discouraged, so I want to merge them into one. Is that possible?
Thank you very much in advance.
asked Aug 09 '17 at 08:15 PM in C++ Programming
Rayaki Ca Tocha
Yes, you can have any number of modules per plug-in. Create one sub-folder within the plug-in's Source directory for each module. The names of the sub-folders are the names of the modules. In your plug-in's .uplugin file you then add the various modules to the "Modules" section.
You can find many examples in the UE4 code base under /Engine/Plugins. Most of the included plug-ins have multiple modules.
answered Aug 10 '17 at 02:04 AM
I have got into a similar problem recently, (I know it is an old question, but maybe someone may fall into the same situation)
Your directory structure are ok, but it is missing the classes that instantiate your modules. In your case you need a TestPlugin.h and TestPlugin.cpp along with the TestPlugin.Build.cs, and the same applies to DonAiNavigation.
You can take a look in any other module implementation to check how is it done but it is mostly like:
hope that helps
answered Jul 22 '18 at 09:03 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here