VS Code Compiler Can't Find FConvexVolume

I’ve created a UStruct that has a member variable of type FConvexVolume. I’ve included ConvexVolume.h in the header file for my UStruct, but every time I try to compile in VS Code I get this error message:

“Error: Unable to find ‘class’, ‘delegate’, ‘enum’, or ‘struct’ with name ‘FConvexVolume’”

I’ve regenerated the project files for VS, made sure the Engine module was included in my Build.cs and even opened up ConvexVolume.h just to make sure FConvexVolume is actually defined there and it is. I’m at a bit of a loss here. Any ideas?

I found the problem. I had declared the FConvexVolume variable as a UPROPERTY, but that wasn’t valid since FConvexVolume is defined as a struct, not a UStruct.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.