FileGroups

date
Sep 3, 2023
type
Project
year
2016
slug
file-groups
status
Published
tags
IMGUI
Unity
EditorWindow
summary
Open just the files needed for what you’re working on.
👉
A little EditorWindow aimed at making it easy to open just the files needed for what you were currently working on.
The basic ideas was to sort files into groups, then click the group header to open all those files in MonoDevelop. (Those were the days… huge step up from Unitron though!)
So if you wanted to work on the “System”, it would open all relevant files for you, if you wanted to work on “Menu-Scripts”, it would open those files for you, etc. - Remember that was before it was so incredibly easy to get to all the places you needed to be within your source files… (Thanks, Rider)
If I recall correctly, most of the actual code was written by my then-intern Manuel.
In principle it’s just a bit of UI work, we stored the group names and contents in a txt file and used UnityEditorInternal.InternalEditorUtility.OpenFileAtLineExternal(filepath, 0, 0); to open the files in the IDE.
notion imagenotion image
notion imagenotion image
notion imagenotion image
notion imagenotion image

Leave a comment