Proper return value declaration for a C++ function

Hello, thank you for replying. I am also using Visual Studio.

So I put my struct under the class APointCloudScript. Here’s how it looks:

header:

source file:

I still get the error: : Error: Unable to find ‘class’, ‘delegate’, ‘enum’, or ‘struct’ with name ‘FPointCloudPoint’

the error is called on the header file on the line:
TArray<APointCloudScript::FPointCloudPoint> APointCloudScript::GeneratePointCloud();

Please let me know if I understood you correctly.