Pro Code Editor is a lightweight yet powerful in-editor code viewer and editor for Unity.
Ideal for quick script edits, shader tweaks, or reading code — without leaving the Unity Editor.
- 🗂️ Open
.cs,.txt, and.shaderfiles directly in Unity - 📝 Rich-text style editing interface
- 💾 Save changes with one click (AssetDatabase auto-refresh)
- 🔄 Change tracking with
isDirtyflag - 🪟 Integrated into Unity’s
Toolsmenu - 👨💻 Developer-friendly UI, supports scroll and autosizing
- 🔒 Prevents accidental loss with unsaved change tracking
Upgrade to Pro Code Editor Premium for advanced features:
| Feature | Free | Premium |
|---|---|---|
Open/Save .cs, .txt, .shader |
✅ | ✅ |
| Syntax Highlighting (C#, ShaderLab) | ❌ | ✅ |
| Line Numbering | ❌ | ✅ |
| Find & Replace | ❌ | ✅ |
| Custom Themes (Dark/Light) | ❌ | ✅ |
| Git Diff Integration | ❌ | ✅ |
| Tabbed Editor UI | ❌ | ✅ |
| Undo/Redo Stack | ❌ | ✅ |
| Auto Backup on Save | ❌ | ✅ |
🎁 Want early access to the Premium build? Reach out via GitHub Discussions
⚠️ Unity only compiles editor tools inside folders namedEditor.
- Navigate to
Tools > Pro Code Editor - Click Open to load a file
- Edit and Save when done!
| Button | Description |
|---|---|
| Open | Choose a .cs, .txt, or .shader file |
| Save | Writes file content and refreshes assets |
| Label | Displays the currently opened filename |
Creates and displays the EditorWindow.
Draws UI layout: scroll view, text area, and footer.
Top bar with open/save and current file name.
Author credit with clickable GitHub link (uses rich text).
Reads file content into editor.
Writes changes and refreshes Unity's AssetDatabase.
- No syntax highlighting or IntelliSense
- No multi-file or tabbed interface
- No undo/redo support (yet)
Krishnamohan Yagneswaran
🔗 GitHub Profile
MIT — free to use, modify, and distribute.
Pull requests, feedback, and feature requests are welcome!
👉 Start a discussion
- VS Code plugin sync
- Unity Console integration
- Autoformatting with Roslyn
Stay tuned!
Drop the script into any Editor folder in your Unity project.