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 remove unused assets when packaging out

Hi guys .Is there any way to autoclear the assets unused?Or to get rid of them when paking out. Cause the Final packaged file is too huge.Thank you .Cheers.

Product Version: UE 4.9
more ▼

asked Apr 18 '16 at 08:03 AM in Packaging & Deployment

avatar image

11 3 4 4

avatar image StarFlame Apr 18 '16 at 09:04 AM

For me, this is a very important question too. Waiting for somebody`s answer.

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

3 answers: sort voted first

Hey guys,

When you go to package your project, there is an option within the 'Packaging' section within 'Project Settings' called, 'Directories to never cook' which will exclude any assets within that specific directory from being included in your cooked and packaged build.

There is also a feature request currently entered to allow users to select specific assets to exclude from their packaged projects as well (UE-29585). I will add your questions as community interest to the feature request to try and get this feature improved.

If you have further questions or need additional assistance, please let me know.


Andrew Hurley

more ▼

answered Apr 26 '16 at 05:15 PM

avatar image Arty-McLabin Sep 24 '17 at 01:27 PM

do you know the current status of that feature request as for 4.17 era?

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

Agreed. Almost every IDE has a "Clean" button which does exactly that.

This is not a difficult concept. Scan all the code for referenced assets, compare it against what exists in the Content folder, then remove it.

That's like 250 lines of code max and really would be important, especially when you have thousands of animations that have been duplicated many times.

more ▼

answered Sep 27 '18 at 01:28 AM

avatar image

rent treznor
61 1 5

avatar image Megurine Feb 06 '19 at 12:58 AM

Can you probably make an editor plugin then ? :)

avatar image rent treznor Feb 06 '19 at 01:52 AM

I have already started writing it, it will be done by tomorrow.

avatar image ZMARDINI Feb 07 '19 at 08:12 AM

keep us updated with the new plugin

avatar image rent treznor Feb 07 '19 at 06:14 PM

It is done, EXCEPT it doesn't detect the referenced materials, yet. From my project alone, it cleaned 90gb of unused assets. I am working on the material aspect now and plan for a release very soon.

avatar image Alphanumber Feb 21 '19 at 09:09 PM

Any news on the plugin?

avatar image rent treznor Feb 22 '19 at 11:30 PM

alt text It is done and works well, just need to make a few tweaks and then i'll put it up in the marketplace. Pic shows before and after running it.

unreal-cleaner.jpg (301.1 kB)
avatar image Draugmith Mar 17 '19 at 10:07 AM

Hi....Rent.....Where we can found this plugin ???

avatar image rent treznor Mar 18 '19 at 08:32 PM

I haven't had much time to work on finishing this up but i'll get it done soon and work on getting it up somewhere.

avatar image Megurine Feb 23 '19 at 11:13 AM

Hi, your software copy only the used asset on a new project, is right ? Can he check if a reference is used in cpp code ?

Do you think its possible to have a function to add your list of unused asset on the list of unpackage file ? Because some assets are in my project for future release and not the actual one, I dont want to have a second project without (and I use Perforce) . I just want to reduce the size of the packaged game. :)

Thank you !

avatar image rent treznor Mar 18 '19 at 08:32 PM

It checks code first, then it checks assets and builds reference tables between all of them recursively.

And yeah that can be added.

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

Great project! any news??

more ▼

answered Mar 26 '19 at 09:52 PM

avatar image

Materia Srl

(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