While packaging my project i noticed it was packing up all the assets in the project even the ones i’m not using. How do i keep it from packing the meshes and textures im not using?
The project does contain maps displaying the assets from each pack downloaded from the market place, but i’m not using them in my project as well. Should i delete the maps that i’m not using? Will it keep from packing all the unused assets?
ok i think i solved it. i had a couple of blueprint errors on blueprints i wasn’t even using. just in case i fixed those and deleted all the maps i wasn’t using. seemed to fix the cooking failure.
but the packaging is still way too big. i still have the feeling it’s packing things i’m not using.
Yes, I believe the engine will package everything in your project folder. Including things that aren’t even referenced anywhere. This also includes unused blueprints, or parts of blueprints that aren’t called.
So if you want to trim down the file size, you’re gonna have to remove anything you don’t actually need.
Yeah i noticed that. It really sucks. Takes forever to trim down the project. I imported a lot of assets into it from other projects but i’m not using half of them.
Managed to trim down from 3 gb to 500 mb so far. I’ll try to trim it down further.
Wish there was an easier way to do this. Epic should really have UE to just package the assets being used on the maps in the project.
Hey, is there any way to quickly remove all unused assets yet? Or ignore unused assets when packaging? Going through all project folders&subfolders to delete all unused, unreferenced assets can be very tedious.
You can quickly weed out the assets not being used by migrating the Persistent level into a clean project. Under Windows > level select the Persistent level and migrate it over to a new clean blank project and only assets used in the project is migrate leaving out assets not in use in the PIE.
Right click on your map file in the content browser, click asset migration (?) and select the content folder of a blank project. (You will need to have created this project prior to the migration). It will then bring along any assets that are in use with the selected map.
Unity3d provides this out of the box with no action required by the developer. I know you can use exclusion .txt files to specify either folders OR specific files for omission but it’s buggy and not 100% clear what params you should use… basically trial and error.
Go to “Packaging” tab in the project settings. Click on the small down arrow at the bottom of packaging settings. Then in “list of maps to include in a packaged build”, add the map you want to package. All assets referenced to this map and assets referenced to those assets, etc. will be packaged but no other asset.
If you don’t add maps here, it will package everything which is in the content folder.
That’s not true. It pacakges only assets referenced by packaged maps/ini files/game mode/game instance. You can force to package assets that are not hard-referenced (usefull if you are using soft-refences to textures/blueprints/etc.).