x

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"

How to delete a C++ class

Because I wanted to set the uniqueNetId through C++ I created a C++ Class with the Editor wizard. But my project is buggy and couldn't handle C++ files. So I want to delete it, but how?

I tried to delete the files in the Source folder and than started the Project again: alt text

Note: VRHalloweenHorror is my project name. The C++ file name is MultiplayerGetNetId

When clicking no, nothing happens. When clicking yes, It says I should rebuild manually.

When right-clicking on the project and generating Visual Studio files I get this: alt text

It says something like: The Namespace 'global namespace' already got a definition for '(my project file name)'

Product Version: UE 4.20
Tags:
modulesmissing.png (11.9 kB)
errorlog.png (19.4 kB)
more ▼

asked Nov 27 '18 at 03:27 PM in C++ Programming

avatar image

ConKucki
45 3 4 7

avatar image ConKucki Nov 28 '18 at 04:15 PM

How can I delete the C++ class? Is there no easy solution?

avatar image Linxx04 Apr 08 '19 at 01:07 PM

I have the same problem and nothing works.

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

3 answers: sort voted first

I finally got it back working. I right clicked the VRHalloweenHorror.uproject file and selected Edit (For me it was Open with Brackets) and deleted the whole module section (picture). And then I deleted the Saved folder, Intermediate folder and .Vs folder and all other Visual Studio files. alt text

more ▼

answered Nov 28 '18 at 05:07 PM

avatar image

ConKucki
45 3 4 7

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

Regenerate your project files. If that doesn't work clean out your intermediate folder and compile/generate again.

more ▼

answered Nov 27 '18 at 03:33 PM

avatar image

Velrin
375 2 8 13

avatar image ConKucki Nov 27 '18 at 03:42 PM

Thanks for your fast reply!

I tried that and a .vs folder and .sln file created itself in the Game project folder. But when starting the project, I still get the message that a Module is missing/build with different engine: alt text

modulesmissing.png (11.9 kB)
avatar image CasinoHe Nov 27 '18 at 04:08 PM

Delete the .cpp and .h files. Right click the VRHalloweenHorror.uproject,Generate Visual Studio files. Rebuild. If built fails,open VRHalloweenHorror.sln,build it in visual studio.That will be OK.

avatar image ConKucki Nov 27 '18 at 07:07 PM

I didn't find any .cpp or .h files. So I opened VRHalloweenHorror.sln and build (with Development Editor and Win64). It was successful but when starting the project (double click on VRHalloweenHorror.uproject) I got the same message: alt text

modulesmissing.png (11.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I have got it working back. I deletes is source all C++ and visual studios files and it works :D

more ▼

answered Apr 07 '19 at 07:03 PM

avatar image

Linxx04
1 1

(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