Download

What is the purpose of FModuleManager and how should it be used?

I am trying to reference a plugin module in another module and have been directed to use the FModuleManager but the documentation isn’t great and i was wondering how it should be used.

Thanks!!

If you want to use classes from other modules, it’s enough to just have your module depend on that other module through your ModuleName.Build.cs file and then you can import and use its public classes directly.

FModuleManager allows you to interface with a Module’s Main Class which is only useful if that module has something in that class, which isn’t often the case.

You can find everything you’ll need to know about creating and using modules in this presentation which I recommend checking out: UE4 Modules - YouTube