I’m following this tutorial on creating an UDP receiver and sender in C++: [UDP Socket Sender Receiver From One UE4 Instance To Another].
I’ve got a problem with including a “Networking.h” header in my actor. When I add it on top of my actor header I get an error at UCLASS() makro: “this declaration has no storage class or type specifier”. With variables I can just put “class” keyword before the types from Networking.h and include it in .cpp file, but it doesn’t work for function parameters. Does anyone know why this include doesn’t work in .h but works in .cpp? Maybe there is a workaround that allows me to use a type from Networking.h to be included in function declaration?
Well, I’ve removed the linker error and it compiles actually (it didn’t before even without the linker error), but still got IntelliSense errors all other the place which is ridiculous and my OCD can’t stand it can I get rid of them somehow?