iniside
(iniside)
August 4, 2014, 6:21pm
1
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)
iniside
(iniside)
August 4, 2014, 6:29pm
3
I already have, have it added, but it doesn’t help.
Welp, I’m out of ideas then. Sorry
You can also use PrivateDependencyModuleNames if you’re only using the module inside Private code.
In the shooter example, I see folders like Public which has ShooterGame.h. Then I see Classes which has the game class header files. Then I see a Private folder which has the .cpp files. However, when Unreal Editor adds a source file, it adds the...
Reading time: 1 mins 🕑
Likes: 7 ❤
Does UJsonDataAsset have the API macro needed to expose it to code outside your game module? It would be ACTIONRPGGAME_API
.
iniside
(iniside)
August 4, 2014, 7:00pm
7
Thanks, that indeed solved the issue.