Skip to content

Flip operation for packed sprite are reversed #206

@Elioty

Description

@Elioty

Code

PS C:\...> python.exe
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import UnityPy
>>> assetEnv = UnityPy.load(r'C:\...\data.unity3d')
>>> for obj in assetEnv.objects:
...     if obj.type.name == 'Sprite':
...         data = obj.read()
...         if data.name == 'alliance_quest_coin':
...             break
...
>>> data.image.show()

Error
No error or exception.

Bug
The transpose operation performed for sprite with packing rotation FlipHorizontal and FlipVertical are reversed.
Horizontal should transpose left and right and vertical should transpose top and bottom.

To Reproduce

  • com.smallgiantgames.empires_60.0.1-1979.apk
  • following data:
    • Python version: Python 3.10.4
    • UnityPy version: 1.10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions