Cannot access USplineMeshComponent in C++

This code in my .h file results in an error:

USplineMeshComponent* SplineMeshComponents;

I created a new c++ scene component. In that component I want a public pointer to a USpineMeshComponent. However it seems like USplineMeshComponent is inaccessible (in C++). The autocomplete in Visual Studio does not find USplineMeshComponent and trying to build my project results in an error. However referencing UStaticMeshComponent is fine.

Hey

Please make sure you also add an include statement for the SplineMeshComponent class. You can find the full path to the component class on the documentation page for SplineMeshComponent:

Cheers