-
-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Labels
Description
import os
import UnityPy
env = UnityPy.load("name.assetbundle")
extract_dir = 'Mesh/name'
os.makedirs(extract_dir, exist_ok=True)
for obj in env.objects:
if obj.type.name == "Mesh":
mesh = obj.read()
output_path = os.path.join(extract_dir, f"{mesh.name}.obj")
with open(output_path, "wt", newline="") as f:
f.write(mesh.export())