ParticleModuleEventSendToGame

G’day,

Trying to get a mesh based particle to interact with the game using ParticleModuleEventSendToGame.
According to this page, all I need to do is subclass ParticleModuleEventSendToGame.
Unfortunately, my attempts end up with unresolved external symbol errors:

Module.GroundBranch.cpp.obj : error LNK2019: unresolved external symbol "public: static class UClass * __cdecl UParticleModuleEventSendToGame::GetPrivateStaticClass(wchar_t const *)" (?GetPrivateStaticClass@UParticleModuleEventSendToGame@@SAPEAVUClass@@PEB_W@Z) referenced in function "void __cdecl GetPrivateStaticClassBody(wchar_t const *,wchar_t const *,class UClass * &,void (__cdecl*)(void))" (??$GetPrivateStaticClassBody@VUGBParticleModuleEventSendToGame@@@@YAXPEB_W0AEAPEAVUClass@@P6AXXZ@Z)
Module.GroundBranch.cpp.obj : error LNK2019: unresolved external symbol "public: __cdecl UParticleModuleEventSendToGame::UParticleModuleEventSendToGame(class FPostConstructInitializeProperties const &)" (??0UParticleModuleEventSendToGame@@QEAA@AEBVFPostConstructInitializeProperties@@@Z) referenced in function "void __cdecl InternalConstructor(class FPostConstructInitializeProperties const &)" (??$InternalConstructor@VUGBParticleModuleEventSendToGame@@@@YAXAEBVFPostConstructInitializeProperties@@@Z)

ParticleDefinitions.h is already included.
Is there another header file or module I should be including?
If not, a bug?

Kris

Looks like we need to tag that class as MinimalAPI and tag its virtual function as ENGINE_API. I will look at making this change.

Hi! I’ve been doing a bit of research on this subject and I haven’t had much luck finding a way of implementing a subclass of ParticleModuleEventSendToGame. The link to the page you said you were using seems to be broken so I’d like to know if it’s possible for you to post how did you manage to subclass from ParticleModuleEventSendToGame since I seem to be doing it the wrong way because the compiler is not able to find that reference anywere.

Thanks in advance!

Hi Canotico. Due to the original age of this post, I will be closing it. If you still need help with this, please post a new question.

Have a great day.