In the case where I need to create a struct and avoid UE4 GC at all, controlling (manually) a struct lifetime, removing data from the memory and nullifying the references/pointers without the GC intervention myself. It’s possible to declare a struct without tagging it as an USTRUCT? The compiler keeps warning me that the type is undefined and must be a UCLASS, USTRUCT or UENUM.
Here is the error:
Here is the snippet: BlackHoleSkill.h - Pastebin.com
Inserting a forward declaration or writing struct in the parameter list found in the line 221 didn’t solve the issue.
Personally, I didn’t find an answer for it.