Unity package export - include dependencies

Discuss Daggerfall Unity and Daggerfall Tools for Unity.
Post Reply
User avatar
King of Worms
Posts: 4752
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Unity package export - include dependencies

Post by King of Worms »

Hi, I want to export DREAM mod to the package, I did it many times, but this time Id like to exclude the bloat.

What is bloat in my case?
Its unused normal/height/occlusion/roughness maps.
Ive made more variants of these maps, and the final material uses just the latest one, and the old ones are in the folders Ive created for them. Sometimes I created a roughness map and than decided to not even use it etc...
texture folders.jpg
texture folders.jpg (179.64 KiB) Viewed 772 times

Question is, if I select just the MATERIAL and de-select the albedo/normal/height maps in their respective folders etc.. than click export with the selected "include dependencies" - will the exporter automatically collect just the used maps of these materials I select for export?

Thanks a lot
01.jpg
01.jpg (188.41 KiB) Viewed 774 times

User avatar
TheLacus
Posts: 1305
Joined: Wed Sep 14, 2016 6:22 pm

Re: Unity package export - include dependencies

Post by TheLacus »

If you manually deselect an asset i wouldn't expect it to be included.

You can achieve what you want if you only target the materials folder and include dependencies, but shaders and other assets might also be included.

User avatar
King of Worms
Posts: 4752
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Unity package export - include dependencies

Post by King of Worms »

Thanks a lot, this makes sense! I will try it.

Post Reply