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"

Refreshing project files

Hey guys,

I have started to learn UE4 with C++. The thing is, I keep having repetitive, continuous crashes and impairing bugs whenever I make a file change to the project I'm using. This includes most notably renaming C++ folders.

The issue

I tried to rename a C++ folder, but when I do it from within Visual studio 2015 -since for some obscure reasons you can't do it from within UE4-, the content browser doesn't get updated correctly and still display the old name, whether I try to update the Visual studio project (right-click on UProject->"generate visual studio project files") or not. This gives me also the same result when updating from the Windows explorer.

I also updated the #include files to avoid compile errors. However, I then keep crashing while loading the project, which in turns forces me to remove the files #including the folder to make it open again.

The questions

oming from the Unity editor, I was expecting to be updating things more manually, which can be a good thing when projects get much bigger and reload times longer. But how do I update properly a UE4 project?

Also, how do you rename a C++ folder? This is some very basic action, and I can't find anywhere on how to do it :'(.

Finally, when the project crashes on load like it did on mine, what is the process for cleaning it up to give it a fresh start? On Unity there's a Temp folder (among others) to delete if editor's file automation get awry. What is the equivalent of UE4?

Thanks for answering the biggest obstacle I am facing with this engine ;).

Product Version: UE 4.16
Tags:
more ▼

asked May 07 '18 at 03:29 PM in Using UE4

avatar image

Tortliena
3 1 6

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

1 answer: sort voted first

Whenever you do something like changing the name of a folder or deleting a c++ class, generate project files, then open the visual studio solution, then build the project through Visual Studio (F5). See if that works.

more ▼

answered May 07 '18 at 04:21 PM

avatar image

goncasmage
897 12 14 25

avatar image Tortliena May 09 '18 at 11:26 AM

Thanks, I will try this right now.

avatar image Tortliena May 09 '18 at 12:05 PM

The renaming part seems to have worked, didn't try to remove a C++ class (yet :p). I thought that the relationship between UE4 and VS was more hierarchical, with UE4 on top and refreshing itself the project structure. Well, as long as I can rename/delete freely something in my project, I can get around crash issues by rolling back to an old version on the source control.

(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