Ok this is driving me a little crazy. I am unable to build my class because of an Unrecognized type ‘FSocket’ error in my header.
But I feel like I’m doing everything right. I’ve added “Sockets” and “Networking” to the PublicDependencyModuleNames in the build config and I’ve put a #include “Sockets.h” and #include “Networking.h” at the top of my header file, but as soon as I try to create a FSocket property it complains.
I even checked to make sure there is a declaration of FSocket in Sockets.h and it’s there.
I can instance FSockets in my class constructor all I want, but I can’t mention them in the header.
This is actually an error from the UnrealHeaderTool. You can’t use FSocket as a property because it is not a USTRUCT.
It should compile when you remove the UPROPERTY() macro.