Creating a header file for Enums

I have some enums I want available to various classes. However for the life of me I can’t figure out how to just create a header file and put them in.

If I create a header file in VS then it goes to the wrong folder. If I move it to the right folder then it throws a Error 2 error code: OtherCompilationError (2)
if I create a class in UE4, delete the class in .cpp and .h and add the enum to the .h file then it throws the same error.

This seems like a really simple problem. Why is it seemingly opaque?

Probably because it’s an oversight on Epic’s part! Just create a new file in your souce directory, then regenerate the .sln project file (right click on the .uproject file to see the option). If you restart VS2013, it should be there.

That works! Thank you very much!

Yep, must never forget to regenerate VS project files… I almost always forget this dumb part :wink: