Decode Unity UI sprite data from Free Fire asset files into clean Python objects. Simple, fast, no drama.
Install from PyPI:
pip install ff-unity-spriteOr Install straight from GitHub:
pip install git+https://github.com/0xMe/ff-unity-sprite.gitfrom ff_unity_sprite import extract
sprites = extract("example.bin")
for sprite in sprites:
print(sprite)import json
from dataclasses import asdict
from ff_unity_sprite import extract
sprites = extract("example.bin")
with open("sprites_output.json", "w", encoding="utf-8") as f:
json.dump(
[asdict(sprite) for sprite in sprites],
f,
indent=4,
ensure_ascii=False,
)Want to see what the output looks like?
- Python 3.10+
- UnityPy