Hey All!
I’ve been having an issue using CableComponent in custom C++ classes.
I set up Dependencies in MyProject.build.cs as follows:
PrivateDependencyModuleNames.AddRange(new string[] { "CableComponent" });
PrivateIncludePathModuleNames.AddRange(new string[] { "CableComponent" });
but I still get the following error in Visual Studio:
Furthermore, the project still builds with no errors, but Visual Studio keeps the red squigglies and treats the cpp file for this class as if the class isn’t a valid type:
Does anyone know why I am getting these errors? This is in the C++ First Person Template, unmodified except for adding this class from the editor and adding the dependencies in MyProject.build.cs