Skip to content

Unable to save modified AssetBundle back to data.unity3d #375

Description

@xxpower

I am currently using the following code:

raw_data = obj.assets_file.save()

out_path = os.path.join(output_dir, asset_file.name)
with open(out_path, "wb") as f:
    f.write(raw_data)

This successfully saves the modified sharedassets0.assets.

However, my source file is data.unity3d (a Unity AssetBundle), and I would like to save the changes back into the AssetBundle itself.

Does UnityPy support rebuilding and saving a modified AssetBundle (data.unity3d) instead of only exporting the modified AssetsFile?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions