Files
ui-editing-scripts/scripts/AssetVersion.py
Jáchym Toušek e6c94ed9ab Update UI compiler
2019-04-18 19:50:05 +02:00

13 lines
338 B
Python

import os
from sys import argv
path = argv[1]
assetsbundlePath = os.path.join(path, "sharedassets0.assets")
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")