-
-
Notifications
You must be signed in to change notification settings - Fork 159
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Code
import os
import UnityPy
print(UnityPy.__version__)
env = UnityPy.load("070ebd75fa14728b6efa688dcaf25b3ad6b53f60122957e823ae43d0d863df47.assetbundle")
for obj in env.objects:
if obj.type.name == "Texture2D":
data = obj.read()
path = os.path.join("", f"{data.m_Name}.png")
try:
data.image.save(path)
print(obj.container, obj.path_id, data.m_Name)
except Exception as e:
pass
Output:
1.22.3
assets/app/assetbundledatas/global/font/df-tokubutogothic-w10001.ttf 2743269464722013593 Font Texture
assets/app/assetbundledatas/global/font/psfont.png 3956642238002007481 PSFont
Error
The exported texture psfont is as below
To Reproduce
Here's the example asset bundle file.
070ebd75fa14728b6efa688dcaf25b3ad6b53f60122957e823ae43d0d863df47.assetbundle.gz
- following data:
- Python version 3.8.15
- UnityPy version 1.22.3
K0lb3
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working