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 get rid of cooked engine content you don't need?

Following the documentation about reducing APK size, I have found lot of big files that I'm pretty sure they are unnecessary for my project. Looking into folder Saved\Cooked I have found this:

alt text

Why this first 3 files are there? and how I can remove them from being cooked with my project? There are also many assets that includes "Tutorial" on his name, pretty sure my android game don't need them.

My project is and empty level with only a camera and then I spawn Paper2D sprites and nothing else, you can see more details and even download it from here.

The actual content of my project is only 170kb, while the Engine content is about 11MB.

One more thing: What happend if I modify, edit or delete engine content using the editor? It will affect only my current project or all projects?

PS: Blueprint project only. I can't C++.

Regards, piX

Product Version: UE 4.9
more ▼

asked Sep 08 '15 at 06:54 PM in Packaging & Deployment

avatar image

699 32 37 151

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

1 answer: sort voted first

Reduced the engine content to 5MB :) Saving 3MB from my final APK

alt text

This is my workaround:

(NOTE: This solution could be risky and will affect all projects using current engine and editor, for good or bad)

The thing is you can't delete these assets because the engine freak out (crash), let's then replace and modify with caution:

0) Go to your Engine installation and backup your Engine\Content folder.

1) Package your project for Android (or any other platform you are working on, is the same)

2) Go to Saved\Cooked\Android_ETC1\Engine\Content and search all *.uasset sorting by Size. Now you have something similar image like the image above from original question.

Now lets work with the first one, biggest one: SM_ColorCalibrator.uasset

3) Go to the Content Browser in your editor and enable Show Engine Content view option. 4) Search your first suspect SM_ColorCalibrator.uasset, open it, and repeat with me: "WTF is this?";

4.1) Create a simple 3 vertices polygon on your favorite 3D soft and export to FBX and also a 1 pixel size image (PNG or TGA).

5) Take a look to the engine asset again, analyze if your project will really need it, SM_ColorCalibrator.uasset most probably 99.9% not, then since this is a mesh right click to Re-Import with your new Mesh! The little triangle!
In case the asset were a texture Re-Import with your new One-Pixel texture, for example: T_SmokeSubUV_8V8, kill it. If the asset is a Material, you could simplify the shader to the minimum if you like, or leave it untouched to avoid recompiling shaders delays. Any other asset type...leave it or modify at your consideration. Finally save changes.

6) Repeat the process for every big size asset you find until you get tired and give up.

7) Package your game again, and enjoy! See how many MB you save and tell me about.

Warning! Remember, do not delete the assets or Editor will crash next time. Also be careful if you replace editor textures like Audio 2D icon... etc.

more ▼

answered Sep 09 '15 at 04:50 PM

avatar image

699 32 37 151

avatar image mightyenigma Sep 11 '17 at 08:35 PM

Cool tip. Thanks. I wonder how this compares to Packaging for Production/Shipping.

(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