unity-pack-audit
Headless Unity Asset Store .unitypackage inspector and thumbnailer.
Batchmode Unity tool that imports .unitypackage files into isolated throwaway URP scratch projects, audits prefab triangle counts, LODGroups, texture sizes, and shaders, and renders contact sheets.
git clone https://github.com/BestRoiMedia/bestroi-game-tools.gitWhy we built it
Importing an unknown Asset Store package directly into a live game pollutes the project and makes it hard to evaluate geometry budgets or URP compatibility. This tool isolates every audit in a disposable scratch project.
Architecture & how it works
audit.sh creates a clean scratch URP project per package, copies PackAudit.cs and PackThumbs.cs into Assets/Editor, runs Unity -batchmode once with -importPackage to unpack assets, and runs a second -executeMethod PackAudit.Run pass to emit a structured JSON audit of LOD0 triangle counts, materials, shaders, and textures, paired with sheet.py for thumbnail grids.
Key capabilities
- Isolates each .unitypackage in a clean, deletable throwaway URP scratch project
- Measures per-prefab LOD0 triangle counts, LODGroup coverage, and SkinnedMeshRenderers
- Audits material shaders and texture dimensions for mobile/web compatibility
- Renders asset thumbnails and assembles contact sheets via sheet.py
Usage example
./unity_pack_audit/audit.sh ./out/pack_audit ./packs/EnvironmentPack.unitypackage