Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Cannot Remove a C++ Class

Greetings. My problem seems pretty simple but ...

I am attempting to delete a C++ class that I have created using the editor. The steps seem fairly simple:

  1. Close Visual / UE4 Editor

  2. Remove the class .cpp and .h from disk in explorer

  3. Remove everything in Game\Binaries *optional

  4. Run GenerateProjectFiles.bat

  5. Recompile


My problem is that there is no GenerateProjectFiles.bat located at:

C:\Program Files\Epic Games\4.7\Engine\Build\BatchFiles

The only file located there is RocketGenerateProjectFiles.bat. When I execute this I get: alt text

This doesn't seem like the right batch file. What is going on here? :)

Any help would be appreciated.

Edit: Added image of no-right click option

alt text

Product Version: UE 4.7
capture.png (218.2 kB)
nomenu.png (52.9 kB)
more ▼

asked Jun 05 '15 at 05:52 PM in C++ Programming

avatar image

116 15 16 21

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Rather than using the batch file do it from the .uproject file. Right click your project file and select the "Generate Visual Studio project files."

This should fix your issue.

more ▼

answered Jun 05 '15 at 06:56 PM

avatar image

112 6 5 11

avatar image irdc Jun 05 '15 at 08:25 PM

Thank you for the response. To be honest, there is no option to "Generate Visual Studio project files" when I right-click on my uproject file. All I can do is the standard Window commands.

I did go to https://answers.unrealengine.com/questions/200241/generate-visual-studio-project-files-did-not-auto.html and I can see the option on the gif there but for some reason I don't have the option.

I will attempt to attach an image.

avatar image irdc Jun 05 '15 at 08:42 PM

Alright, the issue was that for some reason Unreal was not properly registered in the Windows registry, so there were no right-click commands available. I found a nice batch file that someone made that properly registers Unreal at:


Once Unreal was registered, I was able to right-click and see the options. From there I generated a new project file and the classes were gone.

Thanks calben :D

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question