K0lb3 / UnityPy

UnityPy is python module that makes it possible to extract/unpack and edit Unity assets
MIT License
771 stars 114 forks source link

export sprite error: unpack requires a buffer of 8 bytes #182

Closed liang530 closed 9 months ago

liang530 commented 1 year ago

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. readvector2array() for in range (mBonesSize)] Some images may be error

Error export sprite is error:

QQ20230425-100244@2x

Bug

To Reproduce

K0lb3 commented 1 year ago

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