Unity Asset Analyzer

🎮 How to Generate asset_list.txt from Your Unity Project

To use the Unity Asset Analyzer tool, you first need to export a list of all files in your Unity project's Assets/ folder. Follow these simple steps:

✅ Step 1: Open Your Unity Project

Launch your Unity project using the Unity Editor.

✅ Step 2: Create an “Editor” Folder

  1. In the Project window, right-click inside the Assets folder.
  2. Select Create → Folder.
  3. Name it exactly: Editor (with a capital "E").

✅ Step 3: Create a New Script

  1. Right-click inside the Editor folder.
  2. Choose Create → C# Script.
  3. Name the script: ExportAssetList.

✅ Step 4: Paste This Code into the Script

Double-click the script to open it. Delete everything and replace it with the code below:

using UnityEditor;
using System.IO;

public class ExportAssetList
{
    [MenuItem("Tools/Export Asset List")]
    static void Export()
    {
        string[] files = Directory.GetFiles("Assets", "*.*", SearchOption.AllDirectories);
        File.WriteAllLines("Assets/asset_list.txt", files);
        EditorUtility.DisplayDialog("Done", "Exported to Assets/asset_list.txt", "OK");
    }
}

Save the script (Ctrl + S or Command + S).

✅ Step 5: Run the Script

In the Unity top menu bar, click:

Tools → Export Asset List

This will generate a file: Assets/asset_list.txt

✅ Step 6: Locate and Download the File

Using your file explorer:

  • Go to your Unity project folder
  • Open the Assets directory
  • Find asset_list.txt
  • Move or copy it to your desktop

✅ Step 7: Upload It to the Tool

Go to the tool and upload the file:

🔗 Unity Asset Analyzer Tool

Once uploaded, the tool will instantly show your asset breakdown!

📘 Mini Guide – How to Use the Unity Asset Analyzer Tool

As your Unity project grows, it becomes harder to track how many assets you're using – especially if you're targeting mobile or WebGL, where build size matters. The Unity Asset Analyzer solves this by giving you a fast breakdown of all asset types based on a simple exported list.

Here’s how Unity developers can use the tool:

  1. In Unity, use our ExportAssetList.cs script to generate asset_list.txt.
  2. This file lists all the assets used in your project (e.g., textures, scripts, models).
  3. Upload that file on this page using the analyzer tool.
  4. The tool will count each file type and display results with insights and breakdowns.

Use this insight to reduce build size, improve performance, or clean up unused assets.

📈 Real Use Cases – Who This Tool Is For

The Unity Asset Analyzer is especially helpful for:

  • 🎮 Indie devs building mobile games (e.g., hyper-casual, puzzle, AR apps)
  • 👨‍🏫 Game development students learning about project optimization
  • 🧠 Technical artists reviewing the number of shaders, textures, or audio files
  • 💼 Studios preparing for WebGL builds where file size impacts load speed

Whether you're working on a horror FPS or a 2D runner, tracking your asset load helps avoid bloated builds and unexpected crashes on older devices.

🔗 Useful Code Snippet & Unity Docs

Want to generate your asset list inside Unity? Here's a handy export script you can paste into any C# file inside the Assets/Editor/ folder:

using UnityEditor;
using System.IO;

public class ExportAssetList
{
    [MenuItem("Tools/Export Asset List")]
    static void Export()
    {
        string[] files = Directory.GetFiles("Assets", "*.*", SearchOption.AllDirectories);
        File.WriteAllLines("Assets/asset_list.txt", files);
        EditorUtility.DisplayDialog("Done", "Exported to Assets/asset_list.txt", "OK");
    }
}

📖 Official Unity Docs:

🧠 Frequently Asked Questions (FAQs)

🔍 What is the Unity Asset Analyzer tool?
It’s a browser-based tool that analyzes your Unity project’s asset list (from asset_list.txt) and shows how many files of each type you’re using.
📁 What file do I need to upload?
Upload the asset_list.txt file generated using our Unity export script. This file includes paths to all assets in your Unity project’s Assets folder.
🧠 Why should I analyze my assets?
Tracking asset count helps reduce build size, remove unused files, and ensure your game runs well across platforms, especially mobile and WebGL.
📦 Does this tool show the actual build size?
No. This tool shows the count of assets. If you want size estimation, try our Unity Build Size Estimator tool.
🛡️ Is this tool safe? Does it upload my files?
100% safe. This tool runs entirely in your browser. No data is uploaded or saved. Everything happens locally on your device.

Built by GameNGen, a platform by game developers for game developers. We’re committed to building fast, helpful tools with zero bloat and 100% privacy.