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"

.cpp file missing in editor

So I have created 1 class which is the TankPlayerController which points to a pawn that's a Tank and in the visual studio solution the header and cpp file are there, but in the engine editor it isn't. And the compiler is failing because the engine is not seeing the tank files. How do I fix this? I have tried shutting down the editor vs and reopening as others have said and have tried rebuilding the solution and engine by removing all delegates and rebuilding and it still is not picking up my other class.

Product Version: UE 4.15
Tags:
more ▼

asked Aug 14 '17 at 10:44 PM in C++ Programming

avatar image

shotty46290
348 12 7 19

avatar image ImVawx ♦♦ STAFF Aug 15 '17 at 09:33 PM

Right click the .uproject and select "Generate Visual Studio Project files".

See if that helps.

If you add any code from outside of the editor, you will need to generate the visual studio project files in order for the project to know of them.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I tried that and it didn't work. they were created inside the engine itself and the engine said there was an error in generating the files, but in VS they are there, and have the basic generated code of #includes and everything. Luckily it was my first 2 C++ classes of the project so I made a new one created them and transferred over my content folder. But I will definitely need to know how to fix this if it happens in a project much farther along.

more ▼

answered Aug 16 '17 at 09:32 AM

avatar image

shotty46290
348 12 7 19

(comments are locked)
10|2000 characters needed characters left
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