🎮 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
- In the Project window, right-click inside the
Assets
folder. - Select Create → Folder.
- Name it exactly:
Editor
(with a capital "E").
✅ Step 3: Create a New Script
- Right-click inside the
Editor
folder. - Choose Create → C# Script.
- 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:
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:
- In Unity, use our
ExportAssetList.cs
script to generateasset_list.txt
. - This file lists all the assets used in your project (e.g., textures, scripts, models).
- Upload that file on this page using the analyzer tool.
- 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?
📁 What file do I need to upload?
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?
📦 Does this tool show the actual build size?
🛡️ Is this tool safe? Does it upload my files?
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.