ata4 / disunity

An experimental toolset for Unity asset and asset bundle files.
The Unlicense
2.7k stars 659 forks source link

Repacking a .resourceFile #183

Closed womayhem closed 7 years ago

womayhem commented 8 years ago

I can unpack them, just like unity3d files, so how can I repack them back to resourceFiles? The resourceFiles seem to have the UnityWeb version header at the beginning of the file and then compressed data.

Basically, I'm taking unity asset bundles stored in the unity cache folder in AppData and trying to repack them into resourceFiles. The cached asset bundles seem to be extracted.

When I try to use the "bundle unpack CustomAssetBundle -o Compressed.resourceFile" command, I get a null reference exception. I tried renaming the CustomAssetBundle file to .unity3d and not using the -o parameter but that didn't work either.

Thanks

womayhem commented 7 years ago

I created a custom tool.