How to make Export Package include ALL dependencies (shaders, cg.inc files, etc)

This seems to be a known bug

but most frustrating.
You would assume ‘include all dependencies’ would do just that.

Anyone know of a workaround?

1 Like

Hi,
The solution to this, is to bend your mind around how the engine’s export feature is made.
Actually, there is a separate menu for selecting your desired asset (for exporting)'s dependencies.

From the Project window: Right click on the asset you want to export. Choose “Select Dependencies” , you’ll notice the window updates with a bunch of dependant files. Then right click again on one of these files and choose “Export Package”.
You’ll see the export window load with every file in the project… now un-check" include dependencies, and you’ll see the list update to include only the original asset and it’s dependent files.

Keep on Creating!

4 Likes

WowWOW Thank you so much for this solution @jtok4j .

1 Like

the “select dependencies” feature doesn’t work for me - it includes hundreds of scripts that are not at all related to the prefab im trying to export.

1 Like

this is exactly my experience… export package is either missing a load or containing everything (well feeling like it) there doesnt seem to be any middle ground - i guess for the same reason they dont have a used asset option built in is they dont feel confident on picking out what is and what is not related to what

Agreed. My approach is to move 100% of what I need for the export into a single subfolder to export it, then export that subfolder and un-tick the dependencies option.

Then always remember to:

  • test the export in a blank project (you’ll be surprised at what you forgot)

  • close Unity and revert the file move

1 Like

In the end I had to determine and import each file manually and found each file… Wish Unity fixed the “Package Exporter” option. seems pretty handy and important. And been broken for many years- maybe a decade.

1 Like

ok guys I found an answer to this on reddit -

https://www.reddit.com/r/Unity3D/comments/1b43t4m/the_select_dependencies_feature_doesnt_work_for/

what kinda half backed crack is that? (not your fault, but seriously who thought that was a good work flow??)

Didnt seem to entirely work for me