UnityPy
A Unity extraction and patching package
Decision gist · record as of 2026-08-14
Yes, if you need to extract or edit Unity game assets. The library is actively maintained with recent releases and has no known security vulnerabilities. Install friction is moderate due to compiled dependencies and a potential C-typetree crash risk, but precompiled wheels and a fallback mode mitigate these. MIT license is permissive for both open and commercial use. Pin the version if you cannot tolerate breaking changes between minor releases.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Visual C++ Redistributable required on Windows; C-typetree reader may crash Python without warning (disable via configuration if needed).
- Medium install friction: 10 runtime dependencies including compiled C extensions (brotli, lz4, texture2ddecoder, etcpak, astc-encoder-py).
- On Windows, Visual C++ Redistributable is required.
License · maintenance · safety
permissive license (permissive) — MIT License (permissive): you can use, modify, and distribute UnityPy freely in commercial and private projects, but must include the license notice. The author requests sponsorship or charitable donation for commercial use.
last release 2026-08-01 (13 days) · last repo commit 2026-08-01 · 1,397 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 210,150 downloads/mo, #9,503 on PyPI
Alternatives
Verify before relying
import UnityPy
env = UnityPy.load('path/to/asset_file')
for obj in env.objects:
if obj.type.name == 'Texture2D':
data = obj.parse_as_object()
img = data.image
img.save('output.png')- Whether the C-typetree crash occurs in typical workflows or only edge cases.
- Performance characteristics when processing large asset bundles or many objects.
- Compatibility with all Unity versions and asset formats beyond the documented examples.
- Whether breaking changes between minor versions (x.y) are frequent enough to require version pinning in production.
- Actual download volume and user base size to assess community support.
What it is and what it does
UnityPy is a Python library that reads and writes Unity game assets—textures, sprites, meshes, and other serialized objects—extracted from game bundles, APK files, and asset containers. It parses the native typetree structure that Unity uses internally, allowing you to inspect and modify assets in their original form rather than as opaque binary blobs. The library can load assets from file paths, folders, byte streams, or raw bytes, automatically detecting whether the input is a WebFile, BundleFile, Asset, or APK.
The package has 10 runtime dependencies, including compiled C extensions for compression (brotli, lz4) and texture decoding (texture2ddecoder, etcpak, astc-encoder-py). On Windows, Visual C++ Redistributable is required. The C-based typetree reader can crash Python without warning in some cases; a Python fallback exists but must be enabled manually. The library is actively maintained and supports Python 3.8 and newer, with precompiled wheels for most platforms and Python versions.
Use it for
- Extract textures and sprites from game asset bundles for analysis or archival.
- Modify game assets (rename objects, change texture data) and save edited bundles back to disk.
- Automate bulk extraction of specific object types (meshes, audio, configuration files) from game files.
- Inspect the structure and metadata of Unity serialized assets for reverse-engineering or data-mining projects.
- Parse APK files from mobile games to access embedded Unity assets.
- Patch game assets programmatically by parsing as dict or class, modifying fields, and writing back.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to extract or edit Unity game assets.
The library is actively maintained with recent releases and has no known security vulnerabilities. Install friction is moderate due to compiled dependencies and a potential C-typetree crash risk, but precompiled wheels and a fallback mode mitigate these. MIT license is permissive for both open and commercial use. Pin the version if you cannot tolerate breaking changes between minor releases.
Install
unitypy on PyPI
Before you install
Medium install friction: 10 runtime dependencies including compiled C extensions (brotli, lz4, texture2ddecoder, etcpak, astc-encoder-py). On Windows, Visual C++ Redistributable is required. The C-typetree reader can crash Python without warning; a fallback mode exists but must be manually enabled. Active maintenance with recent releases.
Visual C++ Redistributable required on Windows; C-typetree reader may crash Python without warning (disable via configuration if needed).
License in practice
MIT License (permissive): you can use, modify, and distribute UnityPy freely in commercial and private projects, but must include the license notice. The author requests sponsorship or charitable donation for commercial use.
Quickstart
import UnityPy
env = UnityPy.load('path/to/asset_file')
for obj in env.objects:
if obj.type.name == 'Texture2D':
data = obj.parse_as_object()
img = data.image
img.save('output.png')
Verify before relying
- Whether the C-typetree crash occurs in typical workflows or only edge cases.
- Performance characteristics when processing large asset bundles or many objects.
- Compatibility with all Unity versions and asset formats beyond the documented examples.
- Whether breaking changes between minor versions (x.y) are frequent enough to require version pinning in production.
- Actual download volume and user base size to assess community support.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 10 packageslz4brotliPillowtexture2ddecoderetcpakastc-encoder-pyfmod_toolkitfsspecattrstpk_ar |
| Maintenance | Actively maintained 13 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 210,150 / month, #9,503 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Games/EntertainmentTopic :: Multimedia :: GraphicsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: unitypy-1.25.3-cp310-cp310-macosx_10_9_x86_64.whl; unitypy-1.25.3-cp310-cp310-macosx_11_0_arm64.whl; unitypy-1.25.3-cp310-cp310-manylinux_2_24_i686.manylinux_2_28_i686.whl; unitypy-1.25.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; unitypy-1.25.3-cp310-cp310-musllinux_1_2_i686.whl; unitypy-1.25.3-cp310-cp310-musllinux_1_2_x86_64.whl; unitypy-1.25.3-cp310-cp310-win32.whl; unitypy-1.25.3-cp310-cp310-win_amd64.whl; unitypy-1.25.3-cp310-cp310-win_arm64.whl; unitypy-1.25.3-cp311-cp311-macosx_10_9_x86_64.whl; unitypy-1.25.3-cp311-cp311-macosx_11_0_arm64.whl; unitypy-1.25.3-cp311-cp311-manylinux_2_24_i686.manylinux_2_28_i686.whl; unitypy-1.25.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; unitypy-1.25.3-cp311-cp311-musllinux_1_2_i686.whl; unitypy-1.25.3-cp311-cp311-musllinux_1_2_x86_64.whl; unitypy-1.25.3-cp311-cp311-win32.whl; unitypy-1.25.3-cp311-cp311-win_amd64.whl; unitypy-1.25.3-cp311-cp311-win_arm64.whl; unitypy-1.25.3-cp312-cp312-macosx_10_13_x86_64.whl; unitypy-1.25.3-cp312-cp312-macosx_11_0_arm64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “unity asset extractor”
- UnityPyUnityPy extracts and edits Unity asset files (textures, sprites,…
- unitycatalog-clientProvides async Python bindings to the Unity Catalog REST API,…
- dbl-discoverxDiscoverX automates bulk administration tasks across Lakehouse assets…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also texture2ddecoder · etcpak · boilerpy3 · unitycatalog-client · extractcode · unitycatalog-openai · apkutils2 · textract · pystac-ext-item-assets