BuildLens reads the output of a completed Unity player build. If you want to explore the tool before running a build, use Demo Mode instead.
- Open File → Build Settings.
- Select your target platform.
- Click Build (not Build and Run).
- Wait for the build to finish. Unity writes
Library/LastBuild.buildreporton completion.
BuildLens reads from that file. It is updated on every player build and is not a BuildLens file — Unity owns it.
Window → BuildLens → Open BuildLens
The minimum window size is 920 × 580 px. If the window appears blank, resize it.
Click ▶ Analyze in the top-right area of the toolbar.
BuildLens runs three phases:
| Phase | What Happens |
|---|---|
| Loading build report | Reads Library/LastBuild.buildreport. Extracts all PackedAsset entries. |
| Scanning dependencies | Calls AssetDatabase.GetDependencies() per asset. Builds a directed graph of forward and reverse references. |
| Saving snapshot | Serialises the snapshot (nodes + graph) to BuildLensData/snapshots/. Updates the history index. |
When complete the status label shows:
✓ 312 assets · 67.17 MB
The Overview tab is active by default. It shows:
- A treemap (left): every asset as a rectangle proportional to its compressed size, colour-coded by type.
- An asset list (right): assets ranked by compressed size.
- A filter bar: toggle type chips to isolate categories.
- A summary bar: platform, asset count, compressed size, uncompressed size, capture time.
Click any treemap rectangle to select that asset.
After selecting an asset, click the Dependencies tab.
- Left column — Dependencies: what this asset needs.
- Right column — Dependents: what caused this asset to be included.
Use the Depth selector to control traversal depth (1, 2, 3, Full). Click any row to navigate to that asset.
When a snapshot is loaded, the toolbar shows ↓ JSON and ↓ CSV. A save dialog opens with a pre-filled filename. The JSON export (schema v1.1) includes per-asset dependencies and dependents arrays.
| Goal | Document |
|---|---|
| Filter and sort assets | Overview Panel |
| Understand dependency chains deeply | Dependency Panel |
| Compare two builds | History Panel |
| Explore without a real build | Demo Mode |
| Understand what BuildLens cannot do | Limitations |