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"

"Add code to project" resets my filters

Hi -

So I have a lot of C++ classes and have been trying to manage them with Visual Studio's filters, to be more organized. This builds fine. However, when I add a class via the "add code to project" wizard in UE4, it will take away all of my filters and reset it with everything in the "public" and "private" filters. Is there a way to fix this?

Using 4.3.0


Product Version: Not Selected
more ▼

asked Jul 30 '14 at 05:41 PM in C++ Programming

avatar image

18 3 6 9

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

2 answers: sort voted first

It probably because VS project files are regenerated when you use that wizard. Maybe it will be fixed later, for now you can make class manualy and add them to your project, dont make them in VS as they will land in intermidiate directory.

Remember that UBT ignores your project files (you dont really need them actully), it will compile everything you got in source directory.

more ▼

answered Jul 30 '14 at 07:49 PM

avatar image

34.6k 917 164 1095

avatar image Christian.Reese Jul 31 '14 at 03:26 PM

alright. I am making physical folders in the project now to see if that is also a workable solution.

avatar image InsideBSI Mar 18 '16 at 04:33 PM

That's not working for me... Anyone got a fix for this ?

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

Alright, so here's what I found. I'm using 4.3.1 now. Currently, Unreal will regenerate the project file and get rid of any filters that aren't actually physical folders in the source folder. However, it WILL make filters for any actual folders you make on the hard drive. So using filters is possible without loosing them, you just have to make sure they are representing actual folders in your source folder first.

more ▼

answered Jul 31 '14 at 04:30 PM

avatar image

18 3 6 9

(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