Skip to content

Sprite-Texture2D merging issue #45

@szescxz

Description

@szescxz

Code

import UnityPy
env = UnityPy.load("live_note_default")
for path, obj in env.container.items():
    print(path, obj.type)

Error
N/A

Bug
Seems like the Sprite-Texture2D merging is performed in the wrong direction.
Four Sprite in the sample: notes_crtcl, notes_flick, notes_long and notes_normal, all based on the Texture2D notes. (let's ignore the rest of the items here)
I'm expecting all four Sprites in the output, but UnityPy only gives me one Sprite named notes.

Also a tiny bug, too lazy for a separate issue: 1.7.3 breaks str(obj.type), now all items are UnknownType.

To Reproduce

  • a copy of the file that causes the problem
    live_note_default.zip (unzip it and you should get an asset bundle file)
  • following data:
    • Python version 3.7.3
    • UnityPy version 1.7.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