View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.3
- Last updated
- First released
- Unity version
- 6000.4.0 or later
- Package size
- 60 KB
- Files
- 13
- Favorites
- 6
- Views in the past week
- 5
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
SFNamespaceGenerator
Auto-generate consistent C# namespaces from folder structure. Perfect for cleaning existing projects. Batch process scripts with custom overrides to prevent conflicts.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 2
SFNamespaceGenerator screenshot 1
About this asset
SF Namespace Generator
Ever started a project, added dozens of scripts, then realized you forgot namespaces? This tool fixes that AND automatically adds the missing `using` statements that come with adding namespaces.
What It Does
- Adds proper namespaces to your scripts based on folder structure
- Automatically adds missing `using` statements when scripts reference each other
- Fixes those "type not found" errors that happen after adding namespaces
Key Features
- ✅ Smart Namespace Generation: Creates namespaces from folder paths (Assets/Scripts/UI → YourGame.Scripts.UI)
- ✅ Automatic Using Statements: Detects when ScriptA uses ScriptB and adds `using YourGame.Scripts.UI;`
- ✅ Type Detection: Finds references in generics, attributes, switch cases, and casts
- ✅ Batch Processing: Update hundreds of files at once
- ✅ No Manual Work: One click adds namespaces AND fixes dependencies
Perfect For:
- Projects that grew without namespaces
- Fixing "missing reference" errors after organizing code
- Preparing code for sharing or asset store
- Cleaning up messy codebases
How It Works:
- Select your project folder
- Set your root namespace
- Preview what will change
- Click apply - gets namespaces AND using statements right
No more manually adding dozens of `using` statements after organizing your code!
From the publisher's Asset Store listing.
Technical details
Auto-generate consistent C# namespaces from folder structure. Perfect for cleaning existing projects. Batch process scripts with custom overrides.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 6000.4.0b2 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.