Two modules, how to use class from one module in other

I have two Modules:
ActionRPGGame and ActionRPGGameEditor.

In ActionRPGGame I have class JsonDataAsset.

In ActionRPGGameEditor I have ARJsonDataAssetFactory, which reference JSonDataAsset from ActionRPGGame.

In constructor of my Factory class I have:

SupportedClass = UJsonDataAsset::StaticClass();

But while compiling i get error Unresolved External symbol.

What do I need to add to in second module to, be able to use classes from other first one ?

I have a near-identical setup and ran into the same problem. I solved it by adding “ActionRPGGame” to the PublicDependencyModuleNames in ActionRPGGameEditor’s Build.cs script.

(with my module names, obviously, but you get the idea)

I already have, have it added, but it doesn’t help.

Welp, I’m out of ideas then. Sorry :frowning:

You can also use PrivateDependencyModuleNames if you’re only using the module inside Private code.

Does UJsonDataAsset have the API macro needed to expose it to code outside your game module? It would be ACTIONRPGGAME_API.

Thanks, that indeed solved the issue.