Files
ui-editing-scripts/scripts/AssetVersion.py
2019-05-18 08:18:08 +02:00

12 lines
288 B
Python

import os
from sys import argv
assetsbundlePath = argv[1]
if os.path.exists(assetsbundlePath):
with open(assetsbundlePath, "rb") as assetsBundle:
unityVersion = assetsBundle.read(28)[20:].decode("utf-8").rstrip("\0")
print(unityVersion)
else:
print("Nothing found")