How can I share a library module between projects?

kamrann
Sun, 08 Feb 2015 09:27:03 +0000
Plugins

I have some code (UObject-derived classes, helper functions, etc) which I want to reuse in multiple projects. I am sure this must be a common requirement, but am struggling to find any explanation or example of how to do it.

I assume, since the code will make use of the UE4 reflection system, that I need to create a module to encapsulate it. However, while there is some information about adding modules, everything I can find is related to adding a module to an existing project. I want the module to exist above all my projects in the directory structure, since I obviously want to only maintain a single copy of this code.

Writing a plugin may work, but seems like a misuse since I really want a static dependency.

I guess adding a module to the engine itself would be another way, but if possible I’d really prefer to avoid making my projects dependent on a non-standard engine build.

Is there a simpler way to achieve this?

4 posts - 1 participant