[quote=“Gradess, post:2741, topic:30020”]
, how to use Advanced Sessions plugin in C++?
I added these lines in <MyProjectName>.Build.cs
PrivateDependencyModuleNames.AddRange(new string] { "AdvancedSessions", "AdvancedSteamSessions"});
PrivateIncludePathModuleNames.AddRange(new string] { "AdvancedSessions", "AdvancedSteamSessions"});
After that I can include classes from plugins, but when I call:
auto NetId = FBPUniqueNetId();
UAdvancedSessionsLibrary::GetUniqueNetID(PlayerController, NetId);
I got error:
unresolved external symbol "public: static void __cdecl UAdvancedSessionsLibrary::GetUniqueNetID(class APlayerController *,struct FBPUniqueNetId &)" (?GetUniqueNetID@UAdvancedSessionsLibrary@@SAXPEAVAPlayerController@@AEAUFBPUniqueNetId@@@Z) referenced in function "public: static bool __cdecl USessionHelper::IsSession(class UObject *)" (?IsSession@USessionHelper@@SA_NPEAVUObject@@@Z)
Did I miss something or maybe I did something wrong?
Its not meant for c++, I don’t export the symbols. Most of the code is in Async blueprint nodes and what isn’t would be cleaner just directly done in code to begin with. The whole point of the plugin is to expose things that are already accessible in c++ to blueprints.