K0lb3 / UnityPy

UnityPy is python module that makes it possible to extract/unpack and edit Unity assets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

export sprite error: unpack requires a buffer of 8 bytes

liang530 opened this issue · comments

Code
UnityPy/classes/Sprite.py def init(self, reader) function bug:
AE7C16D4-9B6A-4810-802D-C7FB12C11EFF

  1. The SpriteBone() function is missing a parameter
  2. self.m_ Bones=[reader. read_vector2array() for _ in range (mBonesSize)] Some images may be error

Error
export sprite is error:
QQ20230425-100244@2x

Bug

  • AssetStudioGui export is ok!
  • The example of reproducing this bug is in Data.zip,and sharedassets15.assets/path_id=6, where you can directly execute "test_export_error.py" can be reproduced
  • I hope to fix this bug. Thank you very much

To Reproduce

  • Data.zip
  • following data:
    • Python 3.8
    • UnityPy 1.9.28

Thanks for reporting the issue,
I will try to take a look in due time.