Skip to content

About

Decode Unity UI sprite data from Free Fire asset files into structured Python objects.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

ff-unity-sprite

Decode Unity UI sprite data from Free Fire asset files into clean Python objects. Simple, fast, no drama.

Install

Install from PyPI:

pip install ff-unity-sprite

Or Install straight from GitHub:

pip install git+https://github.com/0xMe/ff-unity-sprite.git

Usage

from ff_unity_sprite import extract

sprites = extract("example.bin")

for sprite in sprites:
    print(sprite)

Save as JSON

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,
    )

Example Output

Want to see what the output looks like?

View the example JSON

Requirements

  • Python 3.10+
  • UnityPy

About

Decode Unity UI sprite data from Free Fire asset files into structured Python objects.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages