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"

Moving Assets/Folders

Serious question: How do I move around folders of assets in the editor without f***ing up my whole project?

Every time I move folders, some assets simply stay where they were. So, basically I have to browse all the empty folders for left-over assets. And those folders won't go away until I delete their counterparts from the windows explorer... When I try to "fix up redirectors" afterwards, they usually just stay, too. Next time I start up the project, I can count on getting errors for broken references or missing files. Sometimes assets actually disappeared completely after I moved them and restarted the project. I mean wth?? Is there a reason these things are happening? I can't believe something so fundamental could be so utterly broken in UE4.

Product Version: UE 4.12
Tags:
more ▼

asked Aug 12 '16 at 02:48 PM in Using UE4

avatar image

MaxPower42
628 62 76 115

avatar image AG1970 Dec 16 '16 at 08:21 PM

Same annoyance in 4.14. Moving blueprints from folder to folder is a big pain in ass and result into bad consequences in further developments ! Slowly i don't care features anymore ! i need basic features working!

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

1 answer: sort voted first

I know this answer comes quite late, but for future issues for other people I hope this can serve as a guide to make things clear and easy when it comes to moving assets and folders. Ive seen so many people having issues with this so I thought it would best to write a proper explanation and solution.

Description

Actually, moving items the correct way in UE4 is quite easy, really. Some fundamental understanding of how programming works makes the issue of moving items a bit easier to comprehend.

Consider that we have a cube (static mesh), with some materials. We have a blueprint that is referencing this cube. Both the cube and the blueprint is placed within a test level.

alt text

As I said, the blueprint is referencing the cube. This means that the blueprint has a reference looking/pointing to the cube under a specific folder path (in this case: Content/Test, or as UE4 sees it Game/Test). Somehow the blueprint needs to gather information about the cube, and it does this via referencing the cubes file path.

If we look at the reference viewer for the BP_TestBlueprint we can see that it is infact referencing the cube, and the BP_TestBlueprint is being referenced by the TestLevel since we placed the blueprint in the level(the same goes for the static mesh cube).

alt text

So what happens if we now move the cube outside of the Test folder (it is now placed directly under the content folder)? Well the reference will still look at the original place (Content/Test) unless you tell it to do otherwise. What it will do however is that it will add a redirector to the original folder, which in turn points to the new location.

alt text

This will ensure that the BP_TestBlueprint can still reference the cube through the redirector. But what happens if we now move the BP_TestBlueprint to a completely different folder and remove the original Test folder? Well, we will delete the redirector for the cube aswell. We will then loose the connection between the blueprint and the cube. Thus, things will break and go wrong. Imagine this being done to an asset that has 20 references, then youre in trouble.

To summarize: The reason why things break when moving assets is because assets have references to eachother. Unreal deals with this by adding redirectors. If the redirector is deleted you loose the connection.

How to correctly move assets and folders

A single asset: can be moved without any problem. It will still work as long as you dont delete the redirector. If you want to delete the original folder (without having to worry about the redirector being deleted aswell), you have to Fix Up Redirectors on the folder itself.

alt text

As you can see in the image below, the reference is now pointing to the correct location (directly under the content folder)

alt text

A folder: can be moved by first simply moving the folder to a new location. This will still leave the old folder behind with the structure intact. This may seem odd and frustrating. But, this is because all assets referencing things in the original folder is still keeping their references to that folder, Unreal have again added redirectors. Right click the original folder and click Fix Up Redirectories. All assets will now point their references to the new location. You can now delete the original folder without loosing references.

In case youve done all steps correctly and the folder is impossible to delete, this is in 9/10 cases due to a file still inside the structure that Unreal cant recognize. Rightclick the folder and click Show in explorer. Open the folder and see if there are any files left, if you feel safe to delete them, do so and then try to delete the folder from within Unreal again. It should work. Ive noticed that this is more common if youre connected to Source Control and you get a missmatch between versions etc.

The End

I hope this helped and cleared some things up :D

ref1.png (54.8 kB)
ref3.png (73.0 kB)
ref4.png (74.3 kB)
ref5.png (39.5 kB)
ref6.png (72.1 kB)
more ▼

answered Jan 03 '18 at 03:48 PM

avatar image

Nofyt
396 6 7 9

avatar image skunkiferous Oct 03 '18 at 01:46 PM

This is a nice and clear explanation of the "theory". Sadly, the "practice" looks rather different. Try moving a project "main directory" to a sub-directory (Content/X to Content/Y/Z), and you'll see what I mean...

avatar image Nofyt Oct 03 '18 at 02:13 PM

So you want folder X to me moved to Content/Y/Z/X? This should not be a problem, drag&drop the X folder to the new location, choose "move here". Then locate the "old" X folder, right click, fix up redirctors. This should work, cant see why not...

Cheers!

avatar image neverfollow81 Jan 03 '19 at 04:52 PM

Thank you. this was very helpful for me.

avatar image Nofyt Jan 04 '19 at 12:50 PM

Also, something I forgot mentioning: There is a filter in the content browser called "Show Redirectors". This is a super handy filter that will show the redirectors in the content browser. I always leave this on so that you always see if you have assets referencing something via the redirector!

(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