TArray<APointCloudScript::FPointCloudPoint> APointCloudScript::GeneratePointCloud()
Look at this definition. Ur function return array of struct “FPointCloudPoint” and u say that class owns this struct but it is wrong.
“APointCloudScript::FPointCloudPoint” means that ur class owns this struct. Look at header and u will see that struct is independent.
This is what visual studio says. What IDE do you use?