Closed JunkBeat closed 8 months ago
I can't replicate this. My test script finishes without any issue showing up.
import UnityPy
env = UnityPy.load("resources.assets")
for obj in env.objects:
if obj.type.name == "Texture2D":
print(x, x.m_TextureFormat)
x = obj.read()
x2 = obj.read_typetree()
x.image
print("done")
Furthermore....the data is being passed to PIL, so the issue is most likely not related to UnityPy, as it uses no unsafe code itself.
Here's my code. No error is given, the script just crashes:
For now I'm using a stub to avoid problems:
Assets: https://drive.google.com/file/d/1hbofMD1ZEZZGCN6V8bntgrhpumdAumQh/view?usp=sharing Python version: 3.10.2 UnityPy version: 1.10.3